You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
1.8 KiB

2 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. /*==================================================
  8. * Name:
  9. * Author:John.yuan
  10. * Time:2015-01-08
  11. * Modify:
  12. ====================================================*/
  13. namespace TimingTask
  14. {
  15. public class TimingTaskInfo
  16. {
  17. /// <summary>
  18. /// 任務執行類
  19. /// </summary>
  20. public TimingTaskBase.TimingTaskBase TaskObject
  21. {
  22. set;
  23. get;
  24. }
  25. /// <summary>
  26. /// 任務類型
  27. /// </summary>
  28. public TaskType TaskType
  29. {
  30. set;
  31. get;
  32. }
  33. /// <summary>
  34. /// 任務計時器
  35. /// </summary>
  36. public Timer TaskTimer
  37. {
  38. set;
  39. get;
  40. }
  41. /// <summary>
  42. /// 任務開始時間
  43. /// </summary>
  44. public DateTime BeginTime
  45. {
  46. set;
  47. get;
  48. }
  49. /// <summary>
  50. /// 任務結束時間
  51. /// </summary>
  52. public DateTime EndTime
  53. {
  54. set;
  55. get;
  56. }
  57. /// <summary>
  58. /// 任務執行週期 ms
  59. /// </summary>
  60. public long Period
  61. {
  62. set;
  63. get;
  64. }
  65. /// <summary>
  66. /// 任務名稱
  67. /// </summary>
  68. public string TaskName
  69. {
  70. set;
  71. get;
  72. }
  73. /// <summary>
  74. /// 任務編號
  75. /// </summary>
  76. public string TaskID
  77. {
  78. set;
  79. get;
  80. }
  81. /// <summary>
  82. /// 最後一次成功完成時間
  83. /// </summary>
  84. public DateTime? LastCompleteTime
  85. {
  86. set;
  87. get;
  88. }
  89. }
  90. }