ServiceCollectionContainerBuilderExtensions.BuildServiceProvider Método

Definição

Sobrecargas

BuildServiceProvider(IServiceCollection)

Cria um ServiceProvider que contém serviços do IServiceCollectionfornecido.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Cria um ServiceProvider que contém serviços do IServiceCollection fornecido, opcionalmente, habilitando a validação de escopo.

BuildServiceProvider(IServiceCollection, Boolean)

Cria um ServiceProvider que contém serviços do IServiceCollection fornecido, opcionalmente, habilitando a validação de escopo.

BuildServiceProvider(IServiceCollection)

Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs

Cria um ServiceProvider que contém serviços do IServiceCollectionfornecido.

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

Parâmetros

services
IServiceCollection

O IServiceCollection que contém descritores de serviço.

Retornos

O ServiceProvider.

Aplica-se a

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs

Cria um ServiceProvider que contém serviços do IServiceCollection fornecido, opcionalmente, habilitando a validação de escopo.

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

Parâmetros

services
IServiceCollection

O IServiceCollection que contém descritores de serviço.

options
ServiceProviderOptions

Configura vários comportamentos do provedor de serviços.

Retornos

O ServiceProvider.

Aplica-se a

BuildServiceProvider(IServiceCollection, Boolean)

Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs
Origem:
ServiceCollectionContainerBuilderExtensions.cs

Cria um ServiceProvider que contém serviços do IServiceCollection fornecido, opcionalmente, habilitando a validação de escopo.

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

Parâmetros

services
IServiceCollection

O IServiceCollection que contém descritores de serviço.

validateScopes
Boolean

true executar verificação verificando se os serviços com escopo nunca são resolvidos do provedor raiz; caso contrário, false.

Retornos

O ServiceProvider.

Aplica-se a