다음을 통해 공유


ServiceLifetime 열거형

정의

에서 서비스의 모든 종류의 수명을 열거합니다 IContainerBuilder.

public enum ServiceLifetime
type ServiceLifetime = 
Public Enum ServiceLifetime
상속
ServiceLifetime

필드

Scoped 1

각 범위에 대해 서비스의 새 인스턴스가 생성됨을 나타냅니다.

Singleton 0

서비스의 단일 인스턴스가 만들어질 것임을 나타냅니다.

Transient 2

요청될 때마다 서비스의 새 인스턴스가 생성됨을 나타냅니다.

적용 대상