Пример #1
0
 private string Query(ConfigurationSourcesMonitor monitor, string key) => monitor
 .Select(source => source.GetValue(key))
 .FirstOrDefault(value => value != null);
Пример #2
0
 public ValueSelector(IStronkConfig options)
 {
     _options = options;
     _sources = new ConfigurationSourcesMonitor(options.ConfigSources);
 }