Class PlaceholderResolverConfigurationExtensions
- Namespace
- Steeltoe.Extensions.Configuration.Placeholder
- Assembly
- Steeltoe.Extensions.Configuration.PlaceholderBase.dll
public static class PlaceholderResolverConfigurationExtensions
- Inheritance
-
PlaceholderResolverConfigurationExtensions
- Inherited Members
Methods
AddPlaceholderResolver(ConfigurationManager, ILoggerFactory)
Add a placeholder resolver configuration source to the ConfigurationBuilder. The placeholder resolver source will capture and wrap all the existing sources IConfigurationSource contained in the builder. The newly created source will then replace the existing sources and provide placeholder resolution for the configuration. Typically you will want to add this configuration source as the last one so that you wrap all of the applications configuration sources with place holder resolution.
public static ConfigurationManager AddPlaceholderResolver(this ConfigurationManager configuration, ILoggerFactory loggerFactory = null)
Parameters
configurationConfigurationManagerthe ConfigurationManager
loggerFactoryILoggerFactorythe logger factory to use
Returns
- ConfigurationManager
builder
AddPlaceholderResolver(IConfiguration, ILoggerFactory)
Creates a new ConfigurationRoot from a PlaceholderResolverProvider. The place holder resolver will be created using the existing configuration providers contained in the incoming configuration. This results in providing placeholder resolution for those configuration sources.
public static IConfiguration AddPlaceholderResolver(this IConfiguration configuration, ILoggerFactory loggerFactory = null)
Parameters
configurationIConfigurationincoming configuration to wrap
loggerFactoryILoggerFactorythe logger factory to use
Returns
- IConfiguration
a new configuration
AddPlaceholderResolver(IConfigurationBuilder, ILoggerFactory)
Add a placeholder resolver configuration source to the ConfigurationBuilder. The placeholder resolver source will capture and wrap all the existing sources IConfigurationSource contained in the builder. The newly created source will then replace the existing sources and provide placeholder resolution for the configuration. Typically you will want to add this configuration source as the last one so that you wrap all of the applications configuration sources with place holder resolution.
public static IConfigurationBuilder AddPlaceholderResolver(this IConfigurationBuilder builder, ILoggerFactory loggerFactory = null)
Parameters
builderIConfigurationBuilderthe configuration builder
loggerFactoryILoggerFactorythe logger factory to use
Returns
- IConfigurationBuilder
builder