private void configurationSource_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs args) { if (args.ChangedSectionNames.Contains(ConfigurationSourceSection.SectionName)) { Refresh(); } }
/// <summary> /// Raises the <see cref="SourceChanged"/> event. /// </summary> /// <param name="configurationSourceChangedEventArgs">The argument for the raised event.</param> protected virtual void OnSourceChanged(ConfigurationSourceChangedEventArgs configurationSourceChangedEventArgs) { var handler = this.SourceChanged; if (handler != null) { handler(this, configurationSourceChangedEventArgs); } }
/// <summary> /// Raises the <see cref="SourceChanged"/> event. /// </summary> /// <param name="args">Event arguments</param> protected void OnSourceChangedEvent(ConfigurationSourceChangedEventArgs args) { var handler = this.SourceChanged; if (handler != null) { handler(this, args); } }
void compositeConfigurationSource_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs e) { compositeConfigurationSource.DoConfigurationSourceChanged(e.ChangedSectionNames); }
void handler_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs e) { this.OnSourceChanged(new ConfigurationSourceChangedEventArgs(this, e.ChangedSectionNames)); }