24 lines
670 B
C#
24 lines
670 B
C#
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>();
|
|
|
|
return services;
|
|
}
|
|
}
|