终端一体化运控平台
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.
 
 
 

31 lines
746 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.MorkCL.Server
  7. {
  8. public class TaskServer
  9. {
  10. /// <summary>
  11. /// 获取任务是否执行完成
  12. /// </summary>
  13. //public bool IsComplete => RunTask == null ? false : RunTask.IsCompleted;
  14. public bool IsComplete { get; set; }
  15. /// <summary>
  16. /// 任务取消标识
  17. /// </summary>
  18. public CancellationTokenSource Cts { get; set; } = new CancellationTokenSource();
  19. /// <summary>
  20. /// 任务名称
  21. /// </summary>
  22. public string TaskName { get; set; }
  23. public Task RunTask { get; set; }
  24. }
  25. }