Compartilhar via


ClientBuilderExtensions.UseServiceProviderFactory Método

Definição

Especifica como o IServiceProvider para esse cliente é configurado.

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

Parâmetros

builder
IClientBuilder

O construtor.

factory
Func<IServiceCollection,IServiceProvider>

A fábrica do provedor de serviços.

Retornos

O construtor.

Aplica-se a