- Infrastructure/DependencyInjection.cs: AddInfrastructure() 확장 메서드 - Application/DependencyInjection.cs: AddApplication() 확장 메서드 - API/Extensions/ApplicationBuilderExtensions.cs: UseMiddlewarePipeline() 확장 메서드 - Program.cs 정리 (DI/파이프라인 분리) Closes #26
15 lines
338 B
C#
15 lines
338 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace SPMS.Application;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
// Application Services
|
|
// services.AddScoped<IAuthService, AuthService>();
|
|
|
|
return services;
|
|
}
|
|
}
|