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();
 }
Пример #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();
        }
Пример #4
0
 private void AttachGroupPolicyWatcher(IGroupPolicyWatcher groupPolicyWatcher)
 {
     this.groupPolicyWatcher = groupPolicyWatcher;
     this.groupPolicyWatcher.GroupPolicyUpdated += OnGroupPolicyUpdated;
     this.groupPolicyWatcher.StartWatching();
 }
 private void AttachGroupPolicyWatcher(IGroupPolicyWatcher groupPolicyWatcher)
 {
     this.groupPolicyWatcher = groupPolicyWatcher;
     this.groupPolicyWatcher.GroupPolicyUpdated += new GroupPolicyUpdateDelegate(this.OnGroupPolicyUpdated);
     this.groupPolicyWatcher.StartWatching();
 }
 void AttachGroupPolicyWatcher(IGroupPolicyWatcher groupPolicyWatcher)
 {
     this.groupPolicyWatcher = groupPolicyWatcher;
     this.groupPolicyWatcher.GroupPolicyUpdated += OnGroupPolicyUpdated;
     this.groupPolicyWatcher.StartWatching();
 }