diff --git a/src/core/DigitalData.TaskFlow.Application/DependencyInjection.cs b/src/core/DigitalData.TaskFlow.Application/DependencyInjection.cs new file mode 100644 index 0000000..c51876f --- /dev/null +++ b/src/core/DigitalData.TaskFlow.Application/DependencyInjection.cs @@ -0,0 +1,14 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; + +namespace DigitalData.TaskFlow.Application; + +public static class DependencyInjection +{ + public static IServiceCollection AddApplicationServices(this IServiceCollection services, IConfiguration configuration) + { + // Register application services here + // Example: services.AddSingleton(); + return services; + } +} diff --git a/src/core/DigitalData.TaskFlow.Application/DigitalData.TaskFlow.Application.csproj b/src/core/DigitalData.TaskFlow.Application/DigitalData.TaskFlow.Application.csproj index fa71b7a..ab7cc5f 100644 --- a/src/core/DigitalData.TaskFlow.Application/DigitalData.TaskFlow.Application.csproj +++ b/src/core/DigitalData.TaskFlow.Application/DigitalData.TaskFlow.Application.csproj @@ -6,4 +6,13 @@ enable + + + + + + + + + diff --git a/src/infrastructure/DigitalData.TaskFlow.Infrastructure/DependencyInjection.cs b/src/infrastructure/DigitalData.TaskFlow.Infrastructure/DependencyInjection.cs new file mode 100644 index 0000000..c2a1f5e --- /dev/null +++ b/src/infrastructure/DigitalData.TaskFlow.Infrastructure/DependencyInjection.cs @@ -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(); + return services; + } +} diff --git a/src/infrastructure/DigitalData.TaskFlow.Infrastructure/DigitalData.TaskFlow.Infrastructure.csproj b/src/infrastructure/DigitalData.TaskFlow.Infrastructure/DigitalData.TaskFlow.Infrastructure.csproj index fa71b7a..85f39f8 100644 --- a/src/infrastructure/DigitalData.TaskFlow.Infrastructure/DigitalData.TaskFlow.Infrastructure.csproj +++ b/src/infrastructure/DigitalData.TaskFlow.Infrastructure/DigitalData.TaskFlow.Infrastructure.csproj @@ -6,4 +6,14 @@ enable + + + + + + + + + + diff --git a/src/presentation/DigitalData.TaskFlow.API/DigitalData.TaskFlow.API.csproj b/src/presentation/DigitalData.TaskFlow.API/DigitalData.TaskFlow.API.csproj index 0c56541..3b59ea3 100644 --- a/src/presentation/DigitalData.TaskFlow.API/DigitalData.TaskFlow.API.csproj +++ b/src/presentation/DigitalData.TaskFlow.API/DigitalData.TaskFlow.API.csproj @@ -14,4 +14,9 @@ + + + + + diff --git a/src/presentation/DigitalData.TaskFlow.API/Program.cs b/src/presentation/DigitalData.TaskFlow.API/Program.cs index 48863a6..6749ecf 100644 --- a/src/presentation/DigitalData.TaskFlow.API/Program.cs +++ b/src/presentation/DigitalData.TaskFlow.API/Program.cs @@ -1,6 +1,12 @@ +using DigitalData.TaskFlow.Application; +using DigitalData.TaskFlow.Infrastructure; + var builder = WebApplication.CreateBuilder(args); +var config = builder.Configuration; // Add services to the container. +builder.Services.AddApplicationServices(config); +builder.Services.AddInfrastructureServices(config); builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle