void handler_ConfigurationSectionChanged(object sender, ConfigurationChangedEventArgs e) { this.DoNotifyUpdatedSection(e.SectionName); }
private void OnExternalConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { ExternalConfigSourceChanged(args.SectionName); }
private void DoNotifyUpdatedSection(string sectionName) { Delegate[] invocationList; lock (eventHandlersLock) { ConfigurationChangedEventHandler callbacks = (ConfigurationChangedEventHandler)eventHandlers[sectionName]; if (callbacks == null) { return; } invocationList = callbacks.GetInvocationList(); } ConfigurationChangedEventArgs eventData = new ConfigurationChangedEventArgs(sectionName); try { foreach (ConfigurationChangedEventHandler callback in invocationList) { if (callback != null) { callback(this, eventData); } } } catch // (Exception e) { //EventLog.WriteEntry(GetEventSourceName(), Resources.ExceptionEventRaisingFailed + GetType().FullName + " :" + e.Message); } }
private void ChildConfigurationSectionChanged(object sender, ConfigurationChangedEventArgs args) { configurationSourceHandler.DoConfigurationSectionChanged(args.SectionName); }