Condividi tramite


IHostBuilder.UseServiceProviderFactory Metodo

Definizione

Overload

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Esegue l'override della factory usata per la creazione del provider di servizi.

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

Esegue l'override della factory usata per la creazione del provider di servizi.

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Origine:
IHostBuilder.cs
Origine:
IHostBuilder.cs
Origine:
IHostBuilder.cs

Esegue l'override della factory usata per la creazione del provider di servizi.

public:
generic <typename TContainerBuilder>
 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
Public Function UseServiceProviderFactory(Of TContainerBuilder) (factory As IServiceProviderFactory(Of TContainerBuilder)) As IHostBuilder

Parametri di tipo

TContainerBuilder

Tipo di generatore.

Parametri

factory
IServiceProviderFactory<TContainerBuilder>

Factory da registrare.

Restituisce

Stessa istanza di IHostBuilder per il concatenamento.

Si applica a

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

Origine:
IHostBuilder.cs
Origine:
IHostBuilder.cs
Origine:
IHostBuilder.cs

Esegue l'override della factory usata per la creazione del provider di servizi.

public:
generic <typename TContainerBuilder>
 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
Public Function UseServiceProviderFactory(Of TContainerBuilder) (factory As Func(Of HostBuilderContext, IServiceProviderFactory(Of TContainerBuilder))) As IHostBuilder

Parametri di tipo

TContainerBuilder

Tipo di generatore.

Parametri

factory
Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>

Factory da registrare.

Restituisce

Stessa istanza di IHostBuilder per il concatenamento.

Si applica a