internal ManageableConfigurationSourceImplementation(string configurationFilePath, IManageabilityHelper manageabilityHelper, IGroupPolicyWatcher groupPolicyWatcher, ConfigurationChangeWatcherCoordinator watcherCoordinator, ConfigurationChangeNotificationCoordinator notificationCoordinator)
 {
     this.configurationUpdateLock = new object();
     this.fileMap = new ExeConfigurationFileMap();
     this.fileMap.ExeConfigFilename = configurationFilePath;
     this.manageabilityHelper = manageabilityHelper;
     this.notificationCoordinator = notificationCoordinator;
     this.AttachGroupPolicyWatcher(groupPolicyWatcher);
     this.AttachWatcherCoordinator(watcherCoordinator);
     this.InitializeConfiguration();
 }
Exemplo n.º 2
0
        internal ManageableConfigurationSourceImplementation(string configurationFilePath,
                                                             IManageabilityHelper manageabilityHelper,
                                                             IGroupPolicyWatcher groupPolicyWatcher,
                                                             ConfigurationChangeWatcherCoordinator watcherCoordinator,
                                                             ConfigurationChangeNotificationCoordinator notificationCoordinator)
        {
            this.fileMap = new ExeConfigurationFileMap();
            this.fileMap.ExeConfigFilename = configurationFilePath;

            this.manageabilityHelper     = manageabilityHelper;
            this.notificationCoordinator = notificationCoordinator;
            AttachGroupPolicyWatcher(groupPolicyWatcher);
            AttachWatcherCoordinator(watcherCoordinator);

            InitializeConfiguration();
        }
        /// <summary>
        /// Initialize a new instance o the <see cref="ManageableConfigurationSourceImplementation"/> class.
        /// </summary>
        /// <param name="configurationFilePath">The configuration file path.</param>
        /// <param name="manageabilityHelper">The <see cref="IManageabilityHelper"/> to use.</param>
        /// <param name="groupPolicyWatcher">The <see cref="IGroupPolicyWatcher"/> to use.</param>
        /// <param name="watcherCoordinator">The <see cref="ConfigurationChangeWatcherCoordinator"/> to use.</param>
        /// <param name="notificationCoordinator">The <see cref="ConfigurationChangeNotificationCoordinator"/> to use.</param>
        public ManageableConfigurationSourceImplementation(string configurationFilePath,
                                                             IManageabilityHelper manageabilityHelper,
                                                             IGroupPolicyWatcher groupPolicyWatcher,
                                                             ConfigurationChangeWatcherCoordinator watcherCoordinator,
                                                             ConfigurationChangeNotificationCoordinator notificationCoordinator)
        {
            fileMap = new ExeConfigurationFileMap();
            fileMap.ExeConfigFilename = configurationFilePath;

            this.notificationCoordinator = notificationCoordinator;
            AttachManageabilityHelper(manageabilityHelper);
            AttachGroupPolicyWatcher(groupPolicyWatcher);
            AttachWatcherCoordinator(watcherCoordinator);

            InitializeConfiguration();
        }
Exemplo n.º 4
0
 private void AttachWatcherCoordinator(ConfigurationChangeWatcherCoordinator watcherCoordinator)
 {
     this.watcherCoordinator = watcherCoordinator;
     this.watcherCoordinator.ConfigurationChanged += OnConfigurationChanged;
 }
 private void AttachWatcherCoordinator(ConfigurationChangeWatcherCoordinator watcherCoordinator)
 {
     this.watcherCoordinator = watcherCoordinator;
     this.watcherCoordinator.ConfigurationChanged += new ConfigurationChangedEventHandler(this.OnConfigurationChanged);
 }
 void AttachWatcherCoordinator(ConfigurationChangeWatcherCoordinator watcherCoordinator)
 {
     this.watcherCoordinator = watcherCoordinator;
     this.watcherCoordinator.ConfigurationChanged += OnConfigurationChanged;
 }