persistence/Persistence.Repository/DependencyInjection.cs

26 lines
884 B
C#
Raw Normal View History

using Microsoft.Extensions.DependencyInjection;
using Persistence.Database.Model;
using Persistence.Repositories;
using Persistence.Repository.Data;
using Persistence.Repository.Repositories;
namespace Persistence.Repository;
public static class DependencyInjection
{
public static void MapsterSetup()
{
}
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
{
MapsterSetup();
services.AddTransient<ITimeSeriesDataRepository<DataSaubDto>, TimeSeriesDataRepository<DataSaub, DataSaubDto>>();
services.AddTransient<ISetpointRepository, SetpointRepository>();
services.AddTransient<ITimeSeriesDataRepository<DataSaubDto>, TimeSeriesDataCachedRepository<DataSaub, DataSaubDto>>();
2024-11-22 17:52:15 +05:00
services.AddTransient<ITimestampedSetRepository, TimestampedSetRepository>();
return services;
}
}