Partilhar via


SiloHostBuilderExtensions.UseServiceProviderFactory Método

Definição

Sobrecargas

UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)

Especifica como o IServiceProvider para esse silo é configurado.

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

Especifica como o IServiceProvider para esse silo é configurado.

UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)

Origem:
SiloHostBuilderExtensions.cs

Especifica como o IServiceProvider para esse silo é configurado.

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

Parâmetros

builder
ISiloHostBuilder

O construtor de host.

configureServiceProvider
Func<IServiceCollection,IServiceProvider>

O método de configuração do provedor de serviços.

Retornos

O construtor de silos.

Aplica-se a

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

Origem:
SiloHostBuilderExtensions.cs

Especifica como o IServiceProvider para esse silo é configurado.

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

Parâmetros de tipo

TContainerBuilder

Parâmetros

builder
ISiloHostBuilder

O construtor de host.

factory
IServiceProviderFactory<TContainerBuilder>

O método de configuração do provedor de serviços.

Retornos

O construtor de silos.

Aplica-se a