修复测试服务context错误
This commit is contained in:
@@ -14,7 +14,6 @@ using Serilog;
|
||||
using Microsoft.Extensions.Caching.Distributed;
|
||||
using Serilog.Events;
|
||||
|
||||
|
||||
await RunProgram();
|
||||
return;
|
||||
|
||||
@@ -463,7 +462,8 @@ async Task RunProgram()
|
||||
AllowUserVariables = true,
|
||||
IgnoreCommandTransaction = true,
|
||||
TreatTinyAsBoolean = false,
|
||||
MaximumPoolSize = 50
|
||||
MaximumPoolSize = 50,
|
||||
SslMode = MySqlSslMode.None,
|
||||
}.ConnectionString;
|
||||
});
|
||||
|
||||
@@ -486,7 +486,7 @@ async Task RunProgram()
|
||||
|
||||
host.Services.AddHostedService<MainHostedService>();
|
||||
host.Services.AddHostedService<TaskMonitorService>();
|
||||
host.Services.AddSingleton<IInputService, InputService>();
|
||||
host.Services.AddSingleton<IInputService,InputService>();
|
||||
host.Services.AddSingleton<ITransformService, TransformService>();
|
||||
host.Services.AddSingleton<IOutputService, OutputService>();
|
||||
var redisOptions = host.Configuration.GetSection("RedisCacheOptions").Get<RedisCacheOptions>() ?? new RedisCacheOptions();
|
||||
|
Reference in New Issue
Block a user