feat(jobAutoControl): логика управления авто-контролем

This commit is contained in:
Mikhail Trubnikov
2024-09-12 15:05:47 +10:00
parent 0b1c52422f
commit 1af76405e2
19 changed files with 451 additions and 38 deletions

View File

@@ -19,5 +19,19 @@ namespace PARR.NextRun
services.AddTransient<INextRunManager, NextRunManager>();
}
public static IConfigurationBuilder AddNextRunConfigurations(this IConfigurationBuilder builder, IServiceCollection services)
{
builder.AddDalConfigurations(services);
return builder;
}
public static void AddNextRunSettings(this IServiceCollection services, IConfiguration configuration)
{
services.AddDallSettings(configuration);
}
}
}

View File

@@ -41,7 +41,7 @@ namespace PARR.NextRun
var templateService = scope.ServiceProvider.GetService<ITemplateService>();
if (templateService == null || esppSchService == null)
throw new Exception("Не смог получить серивс ITemplateService или IEsppScheduleTransformService");
throw new Exception($"Не смог получить серивс {nameof(ITemplateService)} или {nameof(IEsppScheduleTransformService)}");
await HandlerAsync(templateService, esppSchService);
}