feat(Infrastructure): erstellt DIExtensions.
- AddWorkFlowRepositories-Methode hinzugefügt, um Repositories über Schnittstellen einzubinden
This commit is contained in:
16
WorkFlow.Infrastructure/DIExtensions.cs
Normal file
16
WorkFlow.Infrastructure/DIExtensions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user