示例#1
0
        private void HandleConfigReplaced(object sender, ConfigReplacedEventArgs e)
        {
            Config oldConf = (Config)sender;

            logger.ConditionalDebug("HandleConfigReplaced old: \'{0}\', new: \'{1}\'",
                                    oldConf.GetConfigName(), e.newConfig.GetConfigName());
            UnregisterConfigEvents(oldConf);
            RegisterConfigEvents(e.newConfig);
        }
示例#2
0
 private void ConfigReplacedHandler(Object sender, ConfigReplacedEventArgs e)
 {
     previousConf = sender as Config;
     newConf      = e.newConfig;
 }
示例#3
0
 private void HandleConfigReplaced(object sender, ConfigReplacedEventArgs e)
 {
     configReplacedEvents.Add(e);
 }