ServiceProviderOptions.ValidateOnBuild 속성

정의

호출될 때 BuildServiceProvider(IServiceCollection, ServiceProviderOptions) 모든 서비스를 만들 수 있도록 유효성 검사가 수행되는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool ValidateOnBuild { bool get(); void set(bool value); };
public bool ValidateOnBuild { get; set; }
member this.ValidateOnBuild : bool with get, set
Public Property ValidateOnBuild As Boolean

속성 값

호출 중에 모든 서비스를 만들 수 있는지 확인하기 위해 유효성 검사를 수행하면 그렇지 않으면 . 기본값은 IsDevelopment(IHostingEnvironment) 값입니다.

설명

개방형 제네릭 서비스의 유효성은 검사되지 않습니다.

적용 대상