ClientBuilderExtensions.ConfigureServices 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向容器添加服务。 可多次进行调用,并累加结果。
public static Orleans.IClientBuilder ConfigureServices (this Orleans.IClientBuilder hostBuilder, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate);
static member ConfigureServices : Orleans.IClientBuilder * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Orleans.IClientBuilder
<Extension()>
Public Function ConfigureServices (hostBuilder As IClientBuilder, configureDelegate As Action(Of IServiceCollection)) As IClientBuilder
参数
- hostBuilder
- IClientBuilder
要配置的 IClientBuilder。
- configureDelegate
- Action<IServiceCollection>
返回
用于链接的相同 IClientBuilder 实例。