共用方式為


ClientBuilderExtensions.UseServiceProviderFactory 方法

定義

指定如何 IServiceProvider 設定此用戶端的 。

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

參數

builder
IClientBuilder

產生器。

factory
Func<IServiceCollection,IServiceProvider>

服務提供者處理站。

傳回

產生器。

適用於