Beispiel #1
0
        private void ExecuteWhilePaused(string sectionName, ActionTakenWhilePaused action)
        {
            IConfigurationChangeWatcher sectionWatcher = (IConfigurationChangeWatcher)configurationWatcherCache[sectionName];

            using (new ConfigurationChangeWatcherPauser(sectionWatcher))
            {
                action();
            }
        }
 private void ExecuteWhilePaused(string sectionName, ActionTakenWhilePaused action)
 {
     IConfigurationChangeWatcher sectionWatcher = (IConfigurationChangeWatcher)configurationWatcherCache[sectionName];
     using(new ConfigurationChangeWatcherPauser(sectionWatcher))
     {
         action();
     }
 }