protected virtual void OnConfigurationChanged(ConfigurationChangedEventArgs e) { if (null != ConfigurationChanged) { ConfigurationChanged(this, e); } }
private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { lock (this) { notifications++; } }
/// <summary> /// Notify updated configuration sections. /// </summary> /// <param name="sectionsToNotify"> /// The name of the sections to notify. /// </param> public void NotifyUpdatedSections(IEnumerable<string> sectionsToNotify) { foreach (string rawSectionName in sectionsToNotify) { String sectionName = CanonicalizeSectionName(rawSectionName); Delegate[] invocationList = null; lock (eventHandlersLock) { ConfigurationChangedEventHandler callbacks = (ConfigurationChangedEventHandler)eventHandlers[sectionName]; if (callbacks == null) { continue; } invocationList = callbacks.GetInvocationList(); } ConfigurationChangedEventArgs eventData = new ConfigurationChangedEventArgs(sectionName); foreach (ConfigurationChangedEventHandler callback in invocationList) { try { if (callback != null) { callback(this, eventData); } } catch (Exception e) { ManageabilityExtensionsLogger.LogException(e, String.Format(CultureInfo.CurrentCulture, Resources.ExceptionErrorOnCallbackForSectionUpdate, sectionName, callback.ToString())); } } } }
void compositeConfigurationSource_ConfigurationSectionChanged(object sender, ConfigurationChangedEventArgs e) { DoSourceSectionChanged(e.SectionName); }
private void OnExternalConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { ExternalConfigSourceChanged(args.SectionName); }
private void updateEvents(object sender, ConfigurationChangedEventArgs args) { args.OldList.CollectionChanged -= onCollectionChanged; args.NewList.CollectionChanged += onCollectionChanged; }
private void OnDataConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { changedConfigurationFile = Path.GetFileName(args.ConfigurationFile); changedSectionName = args.SectionName; eventFired = true; }
void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { if (updatedSectionsTally.ContainsKey(args.SectionName)) { updatedSectionsTally[args.SectionName] = updatedSectionsTally[args.SectionName] + 1; } else { updatedSectionsTally[args.SectionName] = 1; } }
void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { UpdateConfiguration(e.SectionName); }
private void OnMockConfigConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { changedSectionName = args.SectionName; eventFired = true; }
private void ConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { this.SetCulture(e.NewConfiguration); }
void TypeResolverConfigurationChanged(object sender, ConfigurationChangedEventArgs<ITypeResolver> e) { _configurationChangedVisited = true; _before = e.OldValue; _after = e.NewValue; }
private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { Assert.AreEqual(Path.GetFileName(myConfigTestFile).ToLower(), Path.GetFileName(args.ConfigurationFile).ToLower()); Assert.AreEqual(ConfigurationSettings.SectionName, args.SectionName); ++eventFiredCount; }
void Tank_TankConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { this.UpdateValue(); }
private void SettingsConfigFileReloaded(ConfigurationChangedEventArgs args) { LoadSettings(); }
private void ConfigServiceSettingsChanged(object sender, ConfigurationChangedEventArgs e) { var config = _configService.Read(); ApplyAutoCompleteSettings(config); }
/// <summary> /// Handles the ConfigurationChanged event of the SolutionProxy control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ConfigurationChangedEventArgs" /> instance containing the event data.</param> private void SolutionProxy_ConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { UpdateStartupProjects(e.Profiles, e.SelectedProfile); }
void TypeResolverConfigurationChanged(object sender, ConfigurationChangedEventArgs <ITypeResolver> e) { _configurationChangedVisited = true; _before = e.OldValue; _after = e.NewValue; }
public static bool IsConfigurationKey(this ConfigurationChangedEventArgs e, string expectedKey) { return(IsConfigurationKey(e.Key, expectedKey)); }
void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { notifiedEvents.Add(e); }
private void ConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { this.ApplyNewConfiguration(e.NewConfiguration); }
private void FileChanged(object sender, ConfigurationChangedEventArgs eventData) { configurationChangeCounter++; storedEventArgs = eventData; }
/// <summary> /// Handles the ConfigurationChanged event of the Solution control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ConfigurationChangedEventArgs" /> instance containing the event data.</param> private void Solution_ConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { ConfigurationChanged?.Invoke(this, e); }
private void ExceptionThrowingCallback(object sender, ConfigurationChangedEventArgs eventData) { throw new Exception(); }
private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { notifiedEvents.Add(e); }
private void DifferentFileChangedCallback(object sender, ConfigurationChangedEventArgs eventData) { configurationChangeCounter++; }
private void ConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { this.iconAnimationmode = e.NewConfiguration.IconAnimationMode; // Reset, just in case this.SyncthingSyncing = false; }
static void rep_ConfigurationChanged(object sender, EventArgs e) { ConfigurationChangedEventArgs configChanged = (ConfigurationChangedEventArgs)e; Assert.IsTrue(configChanged.ConfigurationMessages.Count > 0); }
private void ConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { this.HaveDonated = e.NewConfiguration.HaveDonated; }
/// <summary> /// Raises the <see cref="ConfigurationChanged"/> event /// </summary> /// <param name="e">Configuration change event arguments</param> private static void OnConfigurationChanged(ConfigurationChangedEventArgs<ITypeResolver> e) { var handler = ConfigurationChanged; if (handler != null) handler(null, e); }
/// <summary> /// Raises the <see cref="ConfigurationChanged"/> event. /// </summary> /// <param name="sender">The sender of the event.</param> /// <param name="args">The event arguments.</param> public void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { if (ConfigurationChanged != null) { ConfigurationChanged(this, args); } }
private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { System.Diagnostics.Debug.WriteLine(string.Join("\n", e.ChangedCredentials)); }
public void ConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { notifiedChanges.Add(e); if (notifiedChanges.Count == notificationsForException) { throw new Exception("bogus"); } }
private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { Assert.AreEqual(testConfigFile, Path.GetFileName(args.ConfigurationFile)); Assert.AreEqual(applConfig1, args.SectionName); ++eventFiredCount; }
private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { changedConfigurationFile = args.ConfigurationFile; changedSectionName = args.SectionName; eventFired = true; eventCount++; }
protected virtual void OnConfigurationChanged() { ConfigurationChangedEventHandler callbacks = (ConfigurationChangedEventHandler)eventHandlers[configurationChangedKey]; ConfigurationChangedEventArgs eventData = new ConfigurationChangedEventArgs(Path.GetFullPath(configFilePath), configurationSectionName); try { if (callbacks != null) { callbacks(this, eventData); } } catch (Exception e) { EventLog.WriteEntry(eventSourceName, SR.ExceptionEventRaisingFailed + ":" + e.Message); } }
private void OnMetaDataConfigurationChanged(object sender, ConfigurationChangedEventArgs args) { changedConfigurationFile = args.ConfigurationFile; changedSectionName = args.SectionName; eventFired = true; eventString += "MetaDataChanged"; }
/// <summary> /// Raises the <see cref="ConfigurationChanged"/> event /// </summary> /// <param name="e">Configuration change event arguments</param> private static void OnConfigurationChanged(ConfigurationChangedEventArgs<IResourceConnectionProviderRegistry> e) { var handler = ConfigurationChanged; if (handler != null) handler(null, e); }
private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs e) { ApplyConfiguration(); }
void OnConfigurationSectionChange(object sender, ConfigurationChangedEventArgs e) { TestsConfigurationSection section = (TestsConfigurationSection)instance.GetSection(e.SectionName); valuesForNotifiedSections[e.SectionName] = section != null ? section.Value : null; }
private void OnSettingsConfigurationChanged(ConfigurationChangedEventArgs args) { this.LoadFavoritesToolbar(); }