Compartir vía


ServiceCollectionContainerBuilderExtensions.BuildServiceProvider Método

Definición

Sobrecargas

BuildServiceProvider(IServiceCollection)

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada y habilita opcionalmente la creación de servicios y la validación de ámbitos.

BuildServiceProvider(IServiceCollection, Boolean)

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada y habilita opcionalmente la validación de ámbito.

BuildServiceProvider(IServiceCollection)

Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada.

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

La interfaz IServiceCollection que contiene los descriptores de servicios.

Devoluciones

El parámetro de cadena de consulta ServiceProvider.

Se aplica a

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada y habilita opcionalmente la creación de servicios y la validación de ámbitos.

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

La interfaz IServiceCollection que contiene los descriptores de servicios.

options
ServiceProviderOptions

Configura varios comportamientos del proveedor de servicios, incluida la creación de servicios y la validación del ámbito.

Devoluciones

El parámetro de cadena de consulta ServiceProvider.

Se aplica a

BuildServiceProvider(IServiceCollection, Boolean)

Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada y habilita opcionalmente la validación de ámbito.

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

La interfaz IServiceCollection que contiene los descriptores de servicios.

validateScopes
Boolean

true para realizar la comprobación comprobando que los servicios con ámbito nunca se resuelven desde el proveedor raíz; de lo contrario, false.

Devoluciones

El parámetro de cadena de consulta ServiceProvider.

Se aplica a