private void configurationSource_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs args)
 {
     if (args.ChangedSectionNames.Contains(ConfigurationSourceSection.SectionName))
     {
         Refresh();
     }
 }
Ejemplo n.º 2
0
        /// <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);
            }
        }
 /// <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);
 }
Ejemplo n.º 6
0
 void handler_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs e)
 {
     this.OnSourceChanged(new ConfigurationSourceChangedEventArgs(this, e.ChangedSectionNames));
 }
 void handler_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs e)
 {
     this.OnSourceChanged(new ConfigurationSourceChangedEventArgs(this, e.ChangedSectionNames));
 }
 /// <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);
     }
 }
 void compositeConfigurationSource_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs e)
 {
     compositeConfigurationSource.DoConfigurationSourceChanged(e.ChangedSectionNames);
 }
 private void configurationSource_ConfigurationSourceChanged(object sender, ConfigurationSourceChangedEventArgs args)
 {
     if (args.ChangedSectionNames.Contains(ConfigurationSourceSection.SectionName))
     {
         Refresh();
     }
 }