Developer 02 8290699b2f feat(Infrastructure): erstellt DIExtensions.
- AddWorkFlowRepositories-Methode hinzugefügt, um Repositories über Schnittstellen einzubinden
2024-10-23 11:11:09 +02:00

16 lines
683 B
C#

using Microsoft.Extensions.DependencyInjection;
using WorkFlow.Infrastructure.Contracts;
using WorkFlow.Infrastructure.Repositories;
namespace WorkFlow.Infrastructure
{
public static class DIExtensions
{
public static IServiceCollection AddWorkFlowRepositories(this IServiceCollection services) => services
.AddScoped<IConfigRepository, ConfigRepository>()
.AddScoped<IProfControlsTfRepository, ProfControlsTfRepository>()
.AddScoped<IProfileObjStateRepository, ProfileObjStateRepository>()
.AddScoped<IProfileRepository, ProfileRepository>()
.AddScoped<IWfStateRepository, WfStateRepository>();
}
}