private string Query(ConfigurationSourcesMonitor monitor, string key) => monitor .Select(source => source.GetValue(key)) .FirstOrDefault(value => value != null);
public ValueSelector(IStronkConfig options) { _options = options; _sources = new ConfigurationSourcesMonitor(options.ConfigSources); }