DecompressDataStartDelegate.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System.ComponentModel;
  2. namespace Update.Net.Events
  3. {
  4. /// <summary>
  5. /// 解压工作委托
  6. /// </summary>
  7. /// <param name="e">参数</param>
  8. public delegate void DecompressDataStartDelegate(DecompressDataStartArgs e);
  9. /// <summary>
  10. /// 解压工作参数
  11. /// </summary>
  12. public class DecompressDataStartArgs
  13. {
  14. /// <summary>
  15. /// 异步操作生存期
  16. /// </summary>
  17. public AsyncOperation Operation { get; private set; }
  18. /// <summary>
  19. /// 要解压的数据
  20. /// </summary>
  21. public byte[] Data { get; private set; }
  22. /// <summary>
  23. /// 删除列表文件
  24. /// </summary>
  25. public string DeleteEntry { get; private set; }
  26. /// <summary>
  27. /// 最后一个解压的文件
  28. /// </summary>
  29. public string LastEntry { get; private set; }
  30. /// <summary>
  31. /// 要解压到的目录
  32. /// </summary>
  33. public string DestinationDirectory { get; private set; }
  34. /// <summary>
  35. /// 构造函数
  36. /// </summary>
  37. /// <param name="asyncOp">异步操作生存期</param>
  38. /// <param name="data">要解压的数据</param>
  39. /// <param name="deleteEntry">删除列表文件</param>
  40. /// <param name="lastEntry">最后一个解压的文件</param>
  41. /// <param name="destinationDirectory">要解压到的目录</param>
  42. public DecompressDataStartArgs(AsyncOperation asyncOp, byte[] data, string deleteEntry, string lastEntry, string destinationDirectory)
  43. {
  44. this.Operation = asyncOp;
  45. this.Data = data;
  46. this.DeleteEntry = deleteEntry;
  47. this.LastEntry = lastEntry;
  48. this.DestinationDirectory = destinationDirectory;
  49. }
  50. }
  51. }