2024-11-14 15:17:43 +05:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Persistence.Database.Model;
|
2024-11-26 10:32:44 +05:00
|
|
|
using Persistence.Models;
|
2024-11-19 11:32:56 +05:00
|
|
|
using Persistence.Repositories;
|
2024-11-14 15:17:43 +05:00
|
|
|
using Persistence.Repository.Data;
|
|
|
|
using Persistence.Repository.Repositories;
|
|
|
|
|
|
|
|
namespace Persistence.Repository;
|
|
|
|
public static class DependencyInjection
|
|
|
|
{
|
|
|
|
public static void MapsterSetup()
|
|
|
|
{
|
|
|
|
}
|
2024-11-15 16:29:15 +05:00
|
|
|
|
|
|
|
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
|
2024-11-14 15:17:43 +05:00
|
|
|
{
|
|
|
|
MapsterSetup();
|
|
|
|
|
|
|
|
services.AddTransient<ITimeSeriesDataRepository<DataSaubDto>, TimeSeriesDataRepository<DataSaub, DataSaubDto>>();
|
2024-11-18 09:39:24 +05:00
|
|
|
services.AddTransient<ISetpointRepository, SetpointRepository>();
|
2024-11-19 11:32:56 +05:00
|
|
|
services.AddTransient<ITimeSeriesDataRepository<DataSaubDto>, TimeSeriesDataCachedRepository<DataSaub, DataSaubDto>>();
|
2024-11-26 11:47:42 +05:00
|
|
|
services.AddTransient<IChangeLogRepository, ChangeLogRepository>();
|
2024-11-22 17:52:15 +05:00
|
|
|
services.AddTransient<ITimestampedSetRepository, TimestampedSetRepository>();
|
2024-11-14 15:17:43 +05:00
|
|
|
|
|
|
|
return services;
|
|
|
|
}
|
|
|
|
}
|