This commit is contained in:
qianjiawei
2024-03-08 17:54:08 +08:00
parent a5c60fb131
commit f37ad2bfa3
9 changed files with 224 additions and 61 deletions

View File

@@ -63,7 +63,7 @@ public class Startup : AppStartup
services.AddSingleton<BackgroundService, TimedTaskBackgroundService>(sp => new TimedTaskBackgroundService());
//var bgSvc = App.GetRequiredService<BackgroundService>();
//bgSvc.StartAsync(CancellationToken.None);
// services.AddHostedService<RedisBackGround>();
services.AddHostedService<RedisBackGround>();
}