using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wood.AutoJob { /// /// 每天x点执行 /// [AttributeUsage(AttributeTargets.Class)] public class DailyAtAttribute : Attribute { /// /// /// /// 示例1:00:00 (0点0分执行) 示例2:23(23点执行) public DailyAtAttribute(string args) { this.Args = args; } /// /// 触发器Id /// public string? TriggerId { get; set; } /// /// 参数 /// 运行时间间隔 /// public string? Args { get; private set; } /// /// 描述信息 /// public string? Description { get; set; } /// /// 起始时间 /// public DateTime? StartTime { get; set; } /// /// 结束时间 /// public DateTime? EndTime { get; set; } /// /// 最大触发次数(0:不限制,n:N次) /// public long MaxNumberOfRuns { get; set; } = 0; /// /// 最大出错次数(0:不限制,n:N次) /// public long MaxNumberOfErrors { get; set; } = 0; /// /// 重试次数 /// public int NumRetries { get; set; } /// /// 重试间隔时间(ms) /// public int RetryTimeout { get; set; } = 60000; /// /// 是否启动时执行一次 /// public bool RunOnStart { get; set; } = false; } }