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