Table of Contents

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 IConfigurationBuilder

The 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 IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

settingsReader ICloudFoundrySettingsReader

Provides 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 IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

settingsReader ICloudFoundrySettingsReader

Provides access to the contents of the various Cloud Foundry environment variables.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.