ServiceCollectionContainerBuilderExtensions.BuildServiceProvider 메서드

정의

오버로드

BuildServiceProvider(IServiceCollection)

제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.Creates a ServiceProvider containing services from the provided IServiceCollection.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

BuildServiceProvider(IServiceCollection, Boolean)

범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

BuildServiceProvider(IServiceCollection)

제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.Creates a ServiceProvider containing services from the provided IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection) As ServiceProvider

매개 변수

services
IServiceCollection

서비스 설명자를 포함하는 IServiceCollection입니다.The IServiceCollection containing service descriptors.

반환

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::DependencyInjection::ServiceProviderOptions ^ options);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions options);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.DependencyInjection.ServiceProviderOptions -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection, options As ServiceProviderOptions) As ServiceProvider

매개 변수

services
IServiceCollection

서비스 설명자를 포함하는 IServiceCollection입니다.The IServiceCollection containing service descriptors.

options
ServiceProviderOptions

다양한 서비스 공급자 동작을 구성합니다.Configures various service provider behaviors.

반환

BuildServiceProvider(IServiceCollection, Boolean)

범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, bool validateScopes);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, bool validateScopes);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection * bool -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection, validateScopes As Boolean) As ServiceProvider

매개 변수

services
IServiceCollection

서비스 설명자를 포함하는 IServiceCollection입니다.The IServiceCollection containing service descriptors.

validateScopes
Boolean

범위 지정 서비스가 루트 공급자에서 확인되지 않는지 확인하는 검사를 수행하려면 true이고, 그렇지 않으면 false입니다.true to perform check verifying that scoped services never gets resolved from root provider; otherwise, false.

반환

적용 대상