Comparteix a través de


HostBuilder.UseServiceProviderFactory Método

Definición

Sobrecargas

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Invalida el generador que se usa para crear el proveedor de servicios.

UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>)

Invalida el generador que se usa para crear el proveedor de servicios.

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs

Invalida el generador que se usa para crear el proveedor de servicios.

public:
generic <typename TContainerBuilder>
 virtual Microsoft::Extensions::Hosting::IHostBuilder ^ UseServiceProviderFactory(Microsoft::Extensions::DependencyInjection::IServiceProviderFactory<TContainerBuilder> ^ factory);
public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory<TContainerBuilder> (Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder> factory);
abstract member UseServiceProviderFactory : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
override this.UseServiceProviderFactory : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function UseServiceProviderFactory(Of TContainerBuilder) (factory As IServiceProviderFactory(Of TContainerBuilder)) As IHostBuilder

Parámetros de tipo

TContainerBuilder

Tipo del generador que se va a crear.

Parámetros

factory
IServiceProviderFactory<TContainerBuilder>

Un generador que se usa para crear proveedores de servicio.

Devoluciones

La misma instancia de IHostBuilder para el encadenamiento.

Implementaciones

Se aplica a

UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>)

Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs

Invalida el generador que se usa para crear el proveedor de servicios.

public:
generic <typename TContainerBuilder>
 virtual Microsoft::Extensions::Hosting::IHostBuilder ^ UseServiceProviderFactory(Func<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::DependencyInjection::IServiceProviderFactory<TContainerBuilder> ^> ^ factory);
public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory<TContainerBuilder> (Func<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder>> factory);
abstract member UseServiceProviderFactory : Func<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder>> -> Microsoft.Extensions.Hosting.IHostBuilder
override this.UseServiceProviderFactory : Func<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder>> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function UseServiceProviderFactory(Of TContainerBuilder) (factory As Func(Of HostBuilderContext, IServiceProviderFactory(Of TContainerBuilder))) As IHostBuilder

Parámetros de tipo

TContainerBuilder

Tipo del generador que se va a crear.

Parámetros

factory
Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>

Un generador que se usa para crear proveedores de servicio.

Devoluciones

La misma instancia de IHostBuilder para el encadenamiento.

Implementaciones

Se aplica a