feat(jobAutoControl): логика управления авто-контролем
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user