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 实例。

适用于