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
builder
IConfigurationBuilderThe IConfigurationBuilder to add configuration to.
Returns
- IConfigurationBuilder
The incoming
builder
so 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
builder
IConfigurationBuilderThe IConfigurationBuilder to add configuration to.
settingsReader
ICloudFoundrySettingsReaderProvides access to the contents of the various Cloud Foundry environment variables.
Returns
- IConfigurationBuilder
The incoming
builder
so 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
builder
IConfigurationBuilderThe IConfigurationBuilder to add configuration to.
settingsReader
ICloudFoundrySettingsReaderProvides access to the contents of the various Cloud Foundry environment variables.
loggerFactory
ILoggerFactoryUsed for internal logging. Pass Instance to disable logging.
Returns
- IConfigurationBuilder
The incoming
builder
so that additional calls can be chained.