File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ public static void Main(string[] args)
2020 //options.AddJob<CustomJob>(Triggers.PeriodSeconds(5));
2121
2222 // 添加自定义任务(每10秒执行)
23- // options.AddJob<CustomJob>(Triggers.PeriodSeconds(10));
23+ options . AddJob < CustomJob > ( Triggers . PeriodSeconds ( 10 ) ) ;
2424
2525 //.NET Cron 表达式解析库 TimeCrontab:https://gitee.com/dotnetchina/TimeCrontab
26- var crontab = Crontab . DailyAt ( 3 ) ; // 每天第 3 小时正(点)
26+ // var crontab = Crontab.DailyAt(3); // 每天第 3 小时正(点)
2727 //var crontab = Crontab.WeeklyAt("WED"); // SUN(星期天),MON,TUE,WED,THU,FRI,SAT
2828 //var crontab = Crontab.YearlyAt(3); // 每年第 3,5,6 月 1 日零点正
29- options . AddJob < CustomJob > ( Triggers . Cron ( crontab . ToString ( ) ) ) ;
29+ // options.AddJob<CustomJob>(Triggers.Cron(crontab.ToString()));
3030 } ) ;
3131
3232 var app = builder . Build ( ) ;
You can’t perform that action at this time.
0 commit comments