using Furion.TaskScheduler; using System; namespace Myshipping.Core.Service; /// /// 任务信息---任务详情 /// public class JobOutput : LocalJobOutput { /// /// Id /// public long Id { get; set; } /// /// 已执行次数 /// public long? RunNumber { get; set; } /// /// 定时器状态 /// public SpareTimeStatus TimerStatus { get; set; } = SpareTimeStatus.Stopped; public string RequestParameters { get; set; } /// /// 异常信息 /// public string Exception { get; set; } } /// /// 本地任务信息 /// public class LocalJobOutput { /// /// 任务名称 /// public string JobName { get; set; } /// /// 只执行一次 /// public bool DoOnce { get; set; } = false; /// /// 立即执行(默认等待启动) /// public bool StartNow { get; set; } = false; /// /// 执行类型(并行、列队) /// public SpareTimeExecuteTypes ExecuteType { get; set; } /// /// 执行间隔时间(单位秒) /// public int Interval { get; set; } /// /// Cron表达式 /// public string Cron { get; set; } /// /// 定时器类型 /// public SpareTimeTypes TimerType { get; set; } /// /// 请求url /// public string RequestUrl { get; set; } /// /// 请求类型 /// /// 2 public RequestTypeEnum RequestType { get; set; } /// /// 备注 /// public string Remark { get; set; } } /// /// 任务方法信息 /// public class TaskMethodInfo : LocalJobOutput { /// /// 方法名 /// public string MethodName { get; set; } /// /// 方法所属类的Type对象 /// public Type DeclaringType { get; set; } }