persistence/DD.Persistence.Client/DependencyInjection.cs
Оля Бизюкова 4ec4ec17eb
Some checks failed
Unit tests / test (push) Failing after 1m11s
Пуш изменений в проекте с интеграционными тестами
2024-12-27 00:37:52 +05:00

30 lines
1.1 KiB
C#

using DD.Persistence.Client.Clients;
using DD.Persistence.Client.Clients.Interfaces;
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)
{
services.AddSingleton(typeof(IRefitClientFactory<>), typeof(RefitClientFactory<>));
services.AddTransient<IChangeLogClient, ChangeLogClient>();
services.AddTransient<IDataSourceSystemClient, DataSourceSystemClient>();
services.AddTransient<ISetpointClient, SetpointClient>();
//services.AddTransient<ITechMessagesClient, TechMessagesClient>();
//services.AddTransient<ITimeSeriesClient<>, TimeSeriesClient<>>();
//services.AddTransient<ITimeSeriesClient, TimeSeriesClient>();
//services.AddTransient<IWitsDataClient, WitsDataClient>();
return services;
}
}