feat(nextRun): рассчет поля NextRun по расписанию
This commit is contained in:
23
PARR.NextRun/NextRunInstaller.cs
Normal file
23
PARR.NextRun/NextRunInstaller.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.BLL;
|
||||
using PARR.DAL;
|
||||
using PARR.NextRun.Settings;
|
||||
|
||||
namespace PARR.NextRun
|
||||
{
|
||||
public static class NextRunInstaller
|
||||
{
|
||||
public static void InstallNextRunServices(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.InstallBllServices(configuration);
|
||||
services.InstallDalServices(configuration);
|
||||
|
||||
var settings = new WorkerSettings();
|
||||
configuration.GetSection(nameof(WorkerSettings)).Bind(settings);
|
||||
services.AddSingleton(settings);
|
||||
|
||||
services.AddTransient<INextRunManager, NextRunManager>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user