StreamProgressArgs.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /* ==============================================================================
  2. * 功能描述:StreamProgressArgs
  3. * 创 建 者:Garrett
  4. * 创建日期:2019/9/16 19:25:42
  5. * ==============================================================================*/
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace PackageUploader.Http
  12. {
  13. /// <summary>
  14. /// StreamProgressArgs
  15. /// </summary>
  16. class StreamProgressArgs : EventArgs
  17. {
  18. public StreamProgressArgs(long incrementTransferred, long transferred, long total)
  19. {
  20. IncrementTransferred = incrementTransferred;
  21. TransferredBytes = transferred;
  22. TotalBytes = total;
  23. }
  24. public long IncrementTransferred { get; private set; }
  25. public long TransferredBytes { get; private set; }
  26. public long TotalBytes { get; private set; }
  27. /// <summary>
  28. /// 传输是否完成
  29. /// </summary>
  30. public bool TransCompleted { get; internal set; }
  31. }
  32. }