2024-12-26 13:42:14 +05:00
|
|
|
|
using DD.Persistence.Client.Clients;
|
|
|
|
|
using DD.Persistence.Client.Clients.Interfaces;
|
2024-12-27 13:35:18 +05:00
|
|
|
|
using DD.Persistence.Models;
|
2024-12-26 13:42:14 +05:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace DD.Persistence.Client;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class DependencyInjection
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="services"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public static IServiceCollection AddPersistenceClients(this IServiceCollection services)
|
|
|
|
|
{
|
2024-12-27 13:35:18 +05:00
|
|
|
|
services.AddTransient(typeof(IRefitClientFactory<>), typeof(RefitClientFactory<>));
|
2024-12-26 13:42:14 +05:00
|
|
|
|
services.AddTransient<IChangeLogClient, ChangeLogClient>();
|
2024-12-27 00:37:52 +05:00
|
|
|
|
services.AddTransient<IDataSourceSystemClient, DataSourceSystemClient>();
|
|
|
|
|
services.AddTransient<ISetpointClient, SetpointClient>();
|
2024-12-27 13:35:18 +05:00
|
|
|
|
services.AddTransient<ITechMessagesClient, TechMessagesClient>();
|
|
|
|
|
services.AddTransient<ITimeSeriesClient<DataSaubDto>, TimeSeriesClient<DataSaubDto>>();
|
|
|
|
|
services.AddTransient<ITimestampedSetClient, TimestampedSetClient>();
|
|
|
|
|
services.AddTransient<IWitsDataClient, WitsDataClient>();
|
2024-12-26 13:42:14 +05:00
|
|
|
|
return services;
|
|
|
|
|
}
|
|
|
|
|
}
|