Partager via


SiloHostBuilderExtensions.UseServiceProviderFactory Méthode

Définition

Surcharges

UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)

Spécifie la façon dont le IServiceProvider pour ce silo est configuré.

UseServiceProviderFactory<TContainerBuilder>(ISiloHostBuilder, IServiceProviderFactory<TContainerBuilder>)

Spécifie la façon dont le IServiceProvider pour ce silo est configuré.

UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)

Source:
SiloHostBuilderExtensions.cs

Spécifie la façon dont le IServiceProvider pour ce silo est configuré.

public static Orleans.Hosting.ISiloHostBuilder UseServiceProviderFactory (this Orleans.Hosting.ISiloHostBuilder builder, Func<Microsoft.Extensions.DependencyInjection.IServiceCollection,IServiceProvider> configureServiceProvider);
static member UseServiceProviderFactory : Orleans.Hosting.ISiloHostBuilder * Func<Microsoft.Extensions.DependencyInjection.IServiceCollection, IServiceProvider> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function UseServiceProviderFactory (builder As ISiloHostBuilder, configureServiceProvider As Func(Of IServiceCollection, IServiceProvider)) As ISiloHostBuilder

Paramètres

builder
ISiloHostBuilder

Générateur d’hôte.

configureServiceProvider
Func<IServiceCollection,IServiceProvider>

Méthode de configuration du fournisseur de services.

Retours

Générateur de silo.

S’applique à

UseServiceProviderFactory<TContainerBuilder>(ISiloHostBuilder, IServiceProviderFactory<TContainerBuilder>)

Source:
SiloHostBuilderExtensions.cs

Spécifie la façon dont le IServiceProvider pour ce silo est configuré.

public static Orleans.Hosting.ISiloHostBuilder UseServiceProviderFactory<TContainerBuilder> (Orleans.Hosting.ISiloHostBuilder builder, Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder> factory);
static member UseServiceProviderFactory : Orleans.Hosting.ISiloHostBuilder * Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> -> Orleans.Hosting.ISiloHostBuilder
Public Function UseServiceProviderFactory(Of TContainerBuilder) (builder As ISiloHostBuilder, factory As IServiceProviderFactory(Of TContainerBuilder)) As ISiloHostBuilder

Paramètres de type

TContainerBuilder

Paramètres

builder
ISiloHostBuilder

Générateur d’hôte.

factory
IServiceProviderFactory<TContainerBuilder>

Méthode de configuration du fournisseur de services.

Retours

Générateur de silo.

S’applique à