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); }
private void ConfigReplacedHandler(Object sender, ConfigReplacedEventArgs e) { previousConf = sender as Config; newConf = e.newConfig; }
private void HandleConfigReplaced(object sender, ConfigReplacedEventArgs e) { configReplacedEvents.Add(e); }