2023-08-25 10:25:24 +10:00
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
using PARR.BLL.Services.Implementations;
|
|
|
|
|
|
using PARR.BLL.Services.Interfaces;
|
|
|
|
|
|
using PARR.BLL.Settings;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.BLL
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class ParrBllInstaller
|
|
|
|
|
|
{
|
2023-11-17 16:03:36 +10:00
|
|
|
|
public static void InstallBllServices(this IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
|
{
|
2023-08-25 10:25:24 +10:00
|
|
|
|
|
|
|
|
|
|
var storageSettings = new StorageSettings();
|
|
|
|
|
|
configuration.GetSection(nameof(StorageSettings)).Bind(storageSettings);
|
|
|
|
|
|
services.AddSingleton(storageSettings);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
services.AddTransient<IFileService, FileService>();
|
2025-08-20 14:10:22 +10:00
|
|
|
|
|
|
|
|
|
|
//services.AddTransient<IMqService, MqService>();
|
|
|
|
|
|
services.AddTransient<IMqService, MqServiceV2>();
|
|
|
|
|
|
|
2024-05-24 14:52:25 +10:00
|
|
|
|
services.AddHttpClient<IMqAdminService, MqAdminService>();
|
2023-11-17 16:03:36 +10:00
|
|
|
|
services.AddTransient<ITransformService, TransformService>();
|
2023-11-29 15:59:27 +10:00
|
|
|
|
services.AddTransient<IIntervalService, IntervalService>();
|
2024-06-28 16:42:53 +10:00
|
|
|
|
services.AddTransient<ICalendarService, CalendarService>();
|
2025-04-17 16:38:35 +10:00
|
|
|
|
services.AddTransient<ITemplateMaskValidator, TemplateMaskValidator>();
|
2023-08-25 10:25:24 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|