Redigera

Dela via


ClientBuilderExtensions.UseServiceProviderFactory Method

Definition

Specifies how the IServiceProvider for this client is configured.

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

Parameters

builder
IClientBuilder

The builder.

factory
Func<IServiceCollection,IServiceProvider>

The service provider factory.

Returns

The builder.

Applies to