예제 #1
0
 public ChainedSubstitutedConfigurationSource(ConfigurationSubstitutor substitutor, IConfiguration configuration)
 {
     _substitutor   = substitutor;
     _configuration = configuration;
 }
예제 #2
0
 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;
 }