SiloHostBuilderExtensions.Configure 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Configure<TOptions>(ISiloHostBuilder, IConfiguration) |
註冊 |
Configure<TOptions>(ISiloHostBuilder, Action<TOptions>) |
註冊用來設定特定選項類型的動作。 |
Configure<TOptions>(ISiloHostBuilder, IConfiguration)
註冊 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>)
註冊用來設定特定選項類型的動作。
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>
用來設定選項的動作。
傳回
定址接收器產生器。