예제 #1
0
        private void InitializeConfiguration()
        {
            currentConfigurationAccessor
                = new ConfigurationInstanceConfigurationAccessor(
                      ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None));

            manageabilityHelper.UpdateConfigurationManageability(currentConfigurationAccessor);
            foreach (String managedSectionName in currentConfigurationAccessor.GetRequestedSectionNames())
            {
                ConfigurationSection configurationSection = currentConfigurationAccessor.GetSection(managedSectionName);
                if (configurationSection != null)
                {
                    watcherCoordinator.SetWatcherForConfigSource(configurationSection.SectionInformation.ConfigSource);
                }
            }
        }