SiloHostBuilderExtensions.Configure 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Configure<TOptions>(ISiloHostBuilder, IConfiguration) |
注册将对其绑定 |
Configure<TOptions>(ISiloHostBuilder, Action<TOptions>) |
注册用于配置特定类型的选项的操作。 |
Configure<TOptions>(ISiloHostBuilder, IConfiguration)
- Source:
- SiloHostBuilderExtensions.cs
注册将对其绑定 TOptions
的配置实例。
public static Orleans.Hosting.ISiloHostBuilder Configure<TOptions> (this Orleans.Hosting.ISiloHostBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration) where TOptions : class;
static member Configure : Orleans.Hosting.ISiloHostBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Orleans.Hosting.ISiloHostBuilder (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (builder As ISiloHostBuilder, configuration As IConfiguration) As ISiloHostBuilder
类型参数
- TOptions
要配置的选项类型。
参数
- builder
- ISiloHostBuilder
主机生成器。
- configuration
- IConfiguration
配置。
返回
孤岛生成器。
适用于
Configure<TOptions>(ISiloHostBuilder, Action<TOptions>)
- Source:
- SiloHostBuilderExtensions.cs
注册用于配置特定类型的选项的操作。
public static Orleans.Hosting.ISiloHostBuilder Configure<TOptions> (this Orleans.Hosting.ISiloHostBuilder builder, Action<TOptions> configureOptions) where TOptions : class;
static member Configure : Orleans.Hosting.ISiloHostBuilder * Action<'Options (requires 'Options : null)> -> Orleans.Hosting.ISiloHostBuilder (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (builder As ISiloHostBuilder, configureOptions As Action(Of TOptions)) As ISiloHostBuilder
类型参数
- TOptions
要配置的选项类型。
参数
- builder
- ISiloHostBuilder
主机生成器。
- configureOptions
- Action<TOptions>
用于配置选项的操作。
返回
孤岛生成器。