Partager via


IHostBuilder.UseServiceProviderFactory Méthode

Définition

Surcharges

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Remplace la fabrique utilisée pour créer le fournisseur de services.

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

Remplace la fabrique utilisée pour créer le fournisseur de services.

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs

Remplace la fabrique utilisée pour créer le fournisseur de services.

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

Paramètres de type

TContainerBuilder

Type de générateur.

Paramètres

factory
IServiceProviderFactory<TContainerBuilder>

Fabrique à inscrire.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à

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

Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs

Remplace la fabrique utilisée pour créer le fournisseur de services.

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

Paramètres de type

TContainerBuilder

Type de générateur.

Paramètres

factory
Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>

Fabrique à inscrire.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à