コード例 #1
0
 public ManageabilityHelper(IDictionary<string, ConfigurationSectionManageabilityProvider> manageabilityProviders, bool readGroupPolicies, IRegistryAccessor registryAccessor, bool generateWmiObjects, IWmiPublisher wmiPublisher, string applicationName)
 {
     this.manageabilityProviders = manageabilityProviders;
     this.readGroupPolicies = readGroupPolicies;
     this.registryAccessor = registryAccessor;
     this.generateWmiObjects = generateWmiObjects;
     this.wmiPublisher = wmiPublisher;
     this.applicationName = applicationName;
     this.publishedSettingsMapping = new Dictionary<string, IEnumerable<ConfigurationSetting>>();
 }
コード例 #2
0
        ///<summary>
        /// Initialize a new instance of the <see cref="ManageabilityHelper"/> class.
        ///</summary>
        ///<param name="manageabilityProviders">The manageability providers.</param>
        ///<param name="readGroupPolicies">true to read group policies; otherwise, false.</param>
        ///<param name="registryAccessor">A registry accessor.</param>
        ///<param name="generateWmiObjects">true to generate wmi objects; othrewise, false.</param>
        ///<param name="wmiPublisher">The wmi publisher.</param>
        ///<param name="applicationName">The application name.</param>
        public ManageabilityHelper(IDictionary <string, ConfigurationSectionManageabilityProvider> manageabilityProviders,
                                   bool readGroupPolicies,
                                   IRegistryAccessor registryAccessor,
                                   bool generateWmiObjects,
                                   IWmiPublisher wmiPublisher,
                                   string applicationName)
        {
            this.manageabilityProviders = manageabilityProviders;
            this.readGroupPolicies      = readGroupPolicies;
            this.registryAccessor       = registryAccessor;
            this.generateWmiObjects     = generateWmiObjects;
            this.wmiPublisher           = wmiPublisher;
            this.applicationName        = applicationName;

            publishedSettingsMapping = new Dictionary <string, IEnumerable <ConfigurationSetting> >();
        }