UpdateClient.ProgressData.cs 685 B

123456789101112131415161718192021222324252627282930
  1. namespace Update.Net
  2. {
  3. partial class UpdateClient
  4. {
  5. /// <summary>
  6. /// 进度数据
  7. /// </summary>
  8. private class ProgressData
  9. {
  10. /// <summary>
  11. /// 已完成字节数
  12. /// </summary>
  13. internal long Completed = 0;
  14. /// <summary>
  15. /// 所有要处理的字节数
  16. /// </summary>
  17. internal long ToComplete = -1;
  18. /// <summary>
  19. /// 重置计数
  20. /// </summary>
  21. internal void Reset()
  22. {
  23. this.Completed = 0;
  24. this.ToComplete = -1;
  25. }
  26. }
  27. }
  28. }