服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-10-26 dcd80459e1ad3b7fc9ba6bcd581feb430f0778d3
Tiger.Model.Net/Entitys/TSK/TSK_TRIG.cs
@@ -170,6 +170,8 @@
            Unknown,
            [Description("未知作业处理程序,作业处理程序类型运行时类型为null")]
            Unhandled,
            [Description("停止")]
            Stop,
        }
        #endregion
@@ -182,16 +184,14 @@
   public class TrigArgs
    {
        public string ToRunNow { get; set; }
        public string ToRunOnceAt { get; set; }
        public DateTime ToRunOnceAtDt { get; set; }
        public int NowAddMinutes { get; set; }
        public int AndEvery { get; set; }
        public int ToRunEvery { get; set; }
        public int ToRunOnceIn { get; set; }
        public string NonReentrant { get; set; } //Y不重复,N重复
        public EveryType Type { get; set; }
        public Int64 Milliseconds { get; set; }
        public DateTime ToRunOnceAtDt { get; set; } //上面要运行的时间
        public int NowAddMinutes { get; set; } //上面时间加多少分钟,表示延迟多少分钟运行
        public int ToRunEvery { get; set; } //每隔多少运行一回
        public int ToRunOnceIn { get; set; } //在多少后运行一次
        public string NonReentrant { get; set; } //Y不重复,N重复。就是是否跟之前的还没运行完的计划同时运行。
        public EveryType Type { get; set; } //时间类型
        public RunType runType { get; set; } //运行类型
        public Int64 Milliseconds { get; set; }
        public int Seconds { get; set; }
        public int Minutes { get; set; }
        public int Hours { get; set; }
@@ -217,5 +217,17 @@
            [Description("月")]
            Months,
        }
        public enum RunType
        {
            [Description("马上运行")]
            ToRunNow,
            [Description("在(T)运行")]
            ToRunOnceAt,
            [Description("隔(T)运行")]
            ToRunEvery,
            [Description("(T)后运行")]
            ToRunOnceIn,
        }
    }
}