Exemplo n.º 1
0
 public Dictionary <string, string> GatherSettings()
 {
     CachedSettings.Clear();
     foreach (var settingMapper in SettingMappings)
     {
         CachedSettings.Add(settingMapper.Key, settingMapper.Value.Load());
     }
     SettingChangeEmitters.ForEach(emitter => emitter(CachedSettings));
     return(CachedSettings.ToDictionary(entry => entry.Key, entry => entry.Value));
 }
Exemplo n.º 2
0
 public Dictionary <string, string> GetSettings()
 {
     return(CachedSettings.ToDictionary(entry => entry.Key, entry => entry.Value));
 }