1
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"Cache": {
|
||||
"CacheType": "RedisCache", //MemoryCache
|
||||
"ip": "localhost",
|
||||
"ip": "192.168.11.109",
|
||||
"port": 6379,
|
||||
"password": "05jWEoJa8v",
|
||||
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=0"
|
||||
},
|
||||
"Redis": {
|
||||
"ip": "localhost",
|
||||
"ip": "192.168.11.109",
|
||||
"port": 6379,
|
||||
"password": "05jWEoJa8v",
|
||||
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=0"
|
||||
|
||||
@@ -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>();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user