Class CloudFoundryConfigurationBuilderExtensions
- Namespace
- Steeltoe.Configuration.CloudFoundry
- Assembly
- Steeltoe.Configuration.CloudFoundry.dll
public static class CloudFoundryConfigurationBuilderExtensions
- Inheritance
-
CloudFoundryConfigurationBuilderExtensions
- Inherited Members
Methods
AddCloudFoundry(IConfigurationBuilder)
Adds the JSON in the Cloud Foundry environment variables, such as VCAP_APPLICATION and VCAP_SERVICES, to the application configuration.
public static IConfigurationBuilder AddCloudFoundry(this IConfigurationBuilder builder)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
Returns
- IConfigurationBuilder
The incoming
builderso that additional calls can be chained.
AddCloudFoundry(IConfigurationBuilder, ICloudFoundrySettingsReader?)
Adds the JSON from the provided settings reader to the application configuration.
public static IConfigurationBuilder AddCloudFoundry(this IConfigurationBuilder builder, ICloudFoundrySettingsReader? settingsReader)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
settingsReaderICloudFoundrySettingsReaderProvides access to the contents of the various Cloud Foundry environment variables.
Returns
- IConfigurationBuilder
The incoming
builderso that additional calls can be chained.
AddCloudFoundry(IConfigurationBuilder, ICloudFoundrySettingsReader?, ILoggerFactory)
Adds the JSON from the provided settings reader to the application configuration.
public static IConfigurationBuilder AddCloudFoundry(this IConfigurationBuilder builder, ICloudFoundrySettingsReader? settingsReader, ILoggerFactory loggerFactory)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
settingsReaderICloudFoundrySettingsReaderProvides access to the contents of the various Cloud Foundry environment variables.
loggerFactoryILoggerFactoryUsed for internal logging. Pass Instance to disable logging.
Returns
- IConfigurationBuilder
The incoming
builderso that additional calls can be chained.