2024-11-19 11:32:56 +05:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2024-11-14 15:17:43 +05:00
|
|
|
|
using Persistence.Database.Model;
|
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();
|
|
|
|
|
|
2024-11-19 11:32:56 +05:00
|
|
|
|
services.AddTransient<ITimeSeriesDataRepository<DataSaubDto>, TimeSeriesDataCachedRepository<DataSaub, DataSaubDto>>();
|
2024-11-22 17:52:15 +05:00
|
|
|
|
services.AddTransient<ITimestampedSetRepository, TimestampedSetRepository>();
|
2024-11-14 15:17:43 +05:00
|
|
|
|
|
|
|
|
|
return services;
|
|
|
|
|
}
|
|
|
|
|
}
|