Table of Contents

Class PlaceholderConfigurationBuilderExtensions

Namespace
Steeltoe.Configuration.Placeholder
Assembly
Steeltoe.Configuration.Placeholder.dll
public static class PlaceholderConfigurationBuilderExtensions
Inheritance
PlaceholderConfigurationBuilderExtensions
Inherited Members

Methods

AddPlaceholderResolver(IConfigurationBuilder)

Adds a configuration source to the ConfigurationBuilder that substitutes placeholders in configuration values.

This method replaces all the existing IConfigurationSources contained in the builder, taking ownership of them. The newly added source then provides placeholder substitution of values stored in its inner configuration (built from the pre-existing sources). Typically, you will want to add this configuration source as the last one, so that placeholder substitution is applied to all configuration values.

public static IConfigurationBuilder AddPlaceholderResolver(this IConfigurationBuilder builder)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

AddPlaceholderResolver(IConfigurationBuilder, ILoggerFactory)

Adds a configuration source to the ConfigurationBuilder that substitutes placeholders in configuration values.

This method replaces all the existing IConfigurationSources contained in the builder, taking ownership of them. The newly added source then provides placeholder substitution of values stored in its inner configuration (built from the pre-existing sources). Typically, you will want to add this configuration source as the last one, so that placeholder substitution is applied to all configuration values.

public static IConfigurationBuilder AddPlaceholderResolver(this IConfigurationBuilder builder, ILoggerFactory loggerFactory)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.