SiloBuilderExtensions.Configure 方法

定义

重载

Configure<TOptions>(ISiloBuilder, IConfiguration)

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

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

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

Configure<TOptions>(ISiloBuilder, IConfiguration)

Source:
SiloBuilderExtensions.cs

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

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

类型参数

TOptions

要配置的选项类型。

参数

builder
ISiloBuilder

silo 生成器。

configuration
IConfiguration

配置。

返回

silo 生成器。

适用于

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

Source:
SiloBuilderExtensions.cs

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

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

类型参数

TOptions

要配置的选项类型。

参数

builder
ISiloBuilder

silo 生成器。

configureOptions
Action<TOptions>

用于配置选项的操作。

返回

silo 生成器。

适用于