multTasks #2

Closed
CZY wants to merge 8 commits from multTasks into main
Showing only changes of commit 7235400aee - Show all commits

View File

@ -445,7 +445,8 @@ async Task RunProgram()
host.Services.AddHostedService<MainHostedService>();
host.Services.AddHostedService<TaskMonitorService>();
host.Services.AddSingleton<IInputService,SimulationInputService>();
if(commandOptions.IsMock)host.Services.AddSingleton<IInputService,SimulationInputService>();
else 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();