using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.MorkCL.Server { public class TaskServer { /// /// 获取任务是否执行完成 /// //public bool IsComplete => RunTask == null ? false : RunTask.IsCompleted; public bool IsComplete { get; set; } /// /// 任务取消标识 /// public CancellationTokenSource Cts { get; set; } = new CancellationTokenSource(); /// /// 任务名称 /// public string TaskName { get; set; } public Task RunTask { get; set; } } }