This commit is contained in:
qianjiawei
2024-02-05 10:33:52 +08:00
parent 77816a9989
commit 130e696699
3 changed files with 18 additions and 9 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>();
}