[Feature] DI 컨테이너 및 서비스 등록 구조화 #26

Closed
opened 2026-02-09 07:19:59 +00:00 by seonkyu.kim · 0 comments
Owner

설명

Program.cs의 DI 등록 코드를 레이어별 확장 메서드로 분리하여 구조화한다.

📌 참조: Documents/ProgramSetup.md §3 (전체 구조), §5 (DI 등록), §7 (UseMiddlewarePipeline)

체크리스트

  • SPMS.Infrastructure/DependencyInjection.cs — AddInfrastructure() 확장 메서드
    • DbContext, Repository, UnitOfWork, JwtService 등록
  • SPMS.Application/DependencyInjection.cs — AddApplication() 확장 메서드
    • Application Service 등록 (현재 비어있음, 구조만 잡기)
  • SPMS.API/Extensions/ApplicationBuilderExtensions.cs — UseMiddlewarePipeline() 확장 메서드
    • ProgramSetup.md §7 파이프라인 순서 준수
  • Program.cs 정리
    • builder.Services.AddApplication()
    • builder.Services.AddInfrastructure(builder.Configuration)
    • app.UseMiddlewarePipeline()
  • 빌드 성공 확인
## 설명 Program.cs의 DI 등록 코드를 레이어별 확장 메서드로 분리하여 구조화한다. > **📌 참조**: `Documents/ProgramSetup.md` §3 (전체 구조), §5 (DI 등록), §7 (UseMiddlewarePipeline) ## 체크리스트 - [x] `SPMS.Infrastructure/DependencyInjection.cs` — AddInfrastructure() 확장 메서드 - DbContext, Repository, UnitOfWork, JwtService 등록 - [x] `SPMS.Application/DependencyInjection.cs` — AddApplication() 확장 메서드 - Application Service 등록 (현재 비어있음, 구조만 잡기) - [x] `SPMS.API/Extensions/ApplicationBuilderExtensions.cs` — UseMiddlewarePipeline() 확장 메서드 - ProgramSetup.md §7 파이프라인 순서 준수 - [x] Program.cs 정리 - `builder.Services.AddApplication()` - `builder.Services.AddInfrastructure(builder.Configuration)` - `app.UseMiddlewarePipeline()` - [x] 빌드 성공 확인
seonkyu.kim added the
Priority
Medium
Status
Available
Type
Feature
labels 2026-02-09 07:20:04 +00:00
seonkyu.kim self-assigned this 2026-02-09 07:20:10 +00:00
seonkyu.kim added this to the Phase 1: 인프라 & 공통 모듈 milestone 2026-02-09 07:20:10 +00:00
seonkyu.kim added
Status
Done
and removed
Status
Available
labels 2026-02-09 07:28:38 +00:00
Sign in to join this conversation.
No description provided.