Add DI setup for modular architecture

Introduced `DependencyInjection.cs` in Application and Infrastructure layers to centralize service registration. Updated project files to include necessary package references (`Microsoft.Extensions.Configuration.Abstractions` and `Microsoft.Extensions.DependencyInjection.Abstractions`) and project dependencies between layers. Integrated service registration in `Program.cs` to enable modular architecture for the API.
This commit is contained in:
2026-10-09 15:24:17 +02:00
parent 41a395af99
commit ee107d74c4
6 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace DigitalData.TaskFlow.Infrastructure;
public static class DependencyInjection
{
public static IServiceCollection AddInfrastructureServices(this IServiceCollection services, IConfiguration configuration)
{
// Register infrastructure services here
// Example: services.AddSingleton<IMyService, MyService>();
return services;
}
}