示例#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);
 }