IOEventArgs.cs 954 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SmartCoalApplication.Base
  7. {
  8. public sealed class IOEventArgs : EventArgs
  9. {
  10. private IOOperationType ioOperationType;
  11. public IOOperationType IOOperationType
  12. {
  13. get
  14. {
  15. return ioOperationType;
  16. }
  17. }
  18. private long position;
  19. public long Position
  20. {
  21. get
  22. {
  23. return position;
  24. }
  25. }
  26. private int count;
  27. public int Count
  28. {
  29. get
  30. {
  31. return count;
  32. }
  33. }
  34. public IOEventArgs(IOOperationType ioOperationType, long position, int count)
  35. {
  36. this.ioOperationType = ioOperationType;
  37. this.position = position;
  38. this.count = count;
  39. }
  40. }
  41. }