Exemplo n.º 1
0
 public void RegisterSource(ConfigurationSource source)
 {
     _sources.Add(source);
     source.NewConfiguration += SourceOnNewConfiguration;
     source.ReadConfigurations();
     PullConfigurationValues(source);
 }
Exemplo n.º 2
0
 private void PushConfigurationValues(ConfigurationSource source)
 {
     foreach (var configuration in source.Configurations)
     {
         configuration.Value.Value = _values[configuration.Value.Name];
     }
 }
Exemplo n.º 3
0
 private void PullConfigurationValues(ConfigurationSource source)
 {
     foreach (var configuration in source.Configurations)
     {
         _values[configuration.Value.Name] = configuration.Value.Value;
     }
 }