public ChainedSubstitutedConfigurationSource(ConfigurationSubstitutor substitutor, IConfiguration configuration) { _substitutor = substitutor; _configuration = configuration; }
private static IConfigurationBuilder EnableSubstitutions(this IConfigurationBuilder builder, ConfigurationSubstitutor substitutor) { return(builder.Add(new ChainedSubstitutedConfigurationSource(substitutor, builder.Build()))); }
/// <summary> /// Initialize a new instance from the configuration. /// </summary> /// <param name="config">The configuration.</param> public ChainedSubstitutedConfigurationProvider(IConfiguration config, ConfigurationSubstitutor substitutor) { _config = config; _substitutor = substitutor; }