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>

返回

用于链接的主机生成器的同一实例。

适用于