ClientBuilderExtensions.Configure 方法

定义

重载

Configure<TOptions>(IClientBuilder, IConfiguration)

注册将对其绑定 TOptions 的配置实例。

Configure<TOptions>(IClientBuilder, Action<TOptions>)

注册用于配置特定类型的选项的操作。

Configure<TOptions>(IClientBuilder, IConfiguration)

注册将对其绑定 TOptions 的配置实例。

public static Orleans.Hosting.IClientBuilder Configure<TOptions> (this Orleans.Hosting.IClientBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration) where TOptions : class;
static member Configure : Orleans.Hosting.IClientBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Orleans.Hosting.IClientBuilder (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (builder As IClientBuilder, configuration As IConfiguration) As IClientBuilder

类型参数

TOptions

要配置的选项类型。

参数

builder
IClientBuilder

主机生成器。

configuration
IConfiguration

配置。

返回

客户端生成器。

适用于

Configure<TOptions>(IClientBuilder, Action<TOptions>)

注册用于配置特定类型的选项的操作。

public static Orleans.Hosting.IClientBuilder Configure<TOptions> (this Orleans.Hosting.IClientBuilder builder, Action<TOptions> configureOptions) where TOptions : class;
static member Configure : Orleans.Hosting.IClientBuilder * Action<'Options (requires 'Options : null)> -> Orleans.Hosting.IClientBuilder (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (builder As IClientBuilder, configureOptions As Action(Of TOptions)) As IClientBuilder

类型参数

TOptions

要配置的选项类型。

参数

builder
IClientBuilder

主机生成器。

configureOptions
Action<TOptions>

用于配置选项的操作。

返回

客户端生成器。

适用于