Example #1
0
 protected virtual void OnSettingHasBeenUpdated(SettingChangedEventArgs e)
 {
     if (SettingHasBeenUpdated != null)
     {
         SettingHasBeenUpdated(this, e);
     }
 }
Example #2
0
        void observable_SettingHasBeenUpdated(object sender, SettingChangedEventArgs e)
        {
            Logger.InfoFormat("Setting updated : {0},{1}", e.Provider.Name, e.SettingName);

            var key = e.SettingName;

            if (nameToKey.ContainsKey(key))
            {
                key = nameToKey[key];
            }

            if (_lazies.ContainsKey(key))
            {
                _lazies[key].Reset();
            }

            OnSettingHasBeenUpdated(e);
        }