共用方式為


SiloHostBuilderExtensions.ConfigureAppConfiguration 方法

定義

設定其餘組建流程和應用程式的組態。 這可以呼叫多次,結果會進行累加。 這些結果可用於後續作業的 Configuration,以及 Services

public static Orleans.Hosting.ISiloHostBuilder ConfigureAppConfiguration (this Orleans.Hosting.ISiloHostBuilder hostBuilder, Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> configureDelegate);
static member ConfigureAppConfiguration : Orleans.Hosting.ISiloHostBuilder * Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function ConfigureAppConfiguration (hostBuilder As ISiloHostBuilder, configureDelegate As Action(Of IConfigurationBuilder)) As ISiloHostBuilder

參數

hostBuilder
ISiloHostBuilder

要設定的主機產生器。

configureDelegate
Action<IConfigurationBuilder>

傳回

用於鏈結之主機產生器的相同實例。

適用於