30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
using DD.Persistence.Client.Clients;
|
|
using DD.Persistence.Client.Clients.Interfaces;
|
|
using DD.Persistence.Models;
|
|
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.AddTransient(typeof(IRefitClientFactory<>), typeof(RefitClientFactory<>));
|
|
services.AddTransient<IChangeLogClient, ChangeLogClient>();
|
|
services.AddTransient<IDataSourceSystemClient, DataSourceSystemClient>();
|
|
services.AddTransient<ISetpointClient, SetpointClient>();
|
|
services.AddTransient<ITechMessagesClient, TechMessagesClient>();
|
|
services.AddTransient<ITimestampedValuesClient, TimestampedValuesClient>();
|
|
services.AddTransient<IWitsDataClient, WitsDataClient>();
|
|
return services;
|
|
}
|
|
}
|