This commit is contained in:
alex
2023-09-18 14:40:21 +08:00
parent 64b6a5485c
commit 0ac46b6e65
2 changed files with 20 additions and 1 deletions

View File

@@ -65,8 +65,8 @@ public class Startup : AppStartup
//注册任务消息通知 added by ly on 20230814
services.AddTaskMessageNotify();
services.AddSingleton<BackgroundService, TimedTaskBackgroundService>();
//定时任务
services.AddTimedTaskService();
//services.AddHostedService<TimedTaskBackgroundService>();
}