共用方式為


ClientBuilderExtensions.ConfigureServices 方法

定義

將服務新增至容器。 這可以呼叫多次,結果會進行累加。

public static Orleans.Hosting.IClientBuilder ConfigureServices (this Orleans.Hosting.IClientBuilder builder, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate);
static member ConfigureServices : Orleans.Hosting.IClientBuilder * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Orleans.Hosting.IClientBuilder
<Extension()>
Public Function ConfigureServices (builder As IClientBuilder, configureDelegate As Action(Of IServiceCollection)) As IClientBuilder

參數

builder
IClientBuilder

主機產生器。

configureDelegate
Action<IServiceCollection>

傳回

用於鏈結的相同 IClientBuilder 執行個體。

適用於