internal SectionInformation(ConfigurationSection associatedConfigurationSection) { this._configurationSection = associatedConfigurationSection; this._allowDefinition = ConfigurationAllowDefinition.Everywhere; this._allowExeDefinition = ConfigurationAllowExeDefinition.MachineToApplication; this._overrideModeDefault = System.Configuration.OverrideModeSetting.SectionDefault; this._overrideMode = System.Configuration.OverrideModeSetting.LocationDefault; this._flags[8] = true; this._flags[0x10] = true; this._flags[0x20] = true; this._flags[0x100] = true; this._flags[0x1000] = false; this._modifiedFlags = new SimpleBitVector32(); }
internal SectionInformation(ConfigurationSection associatedConfigurationSection) { this._configurationSection = associatedConfigurationSection; this._allowDefinition = ConfigurationAllowDefinition.Everywhere; this._allowExeDefinition = ConfigurationAllowExeDefinition.MachineToApplication; this._overrideModeDefault = System.Configuration.OverrideModeSetting.SectionDefault; this._overrideMode = System.Configuration.OverrideModeSetting.LocationDefault; this._flags[8] = true; this._flags[0x10] = true; this._flags[0x20] = true; this._flags[0x100] = true; this._flags[0x1000] = false; this._modifiedFlags = new SimpleBitVector32(); }
internal void SetRuntimeConfigurationInformation(BaseConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord) { this._flags[1] = true; this._configKey = factoryRecord.ConfigKey; this._group = factoryRecord.Group; this._name = factoryRecord.Name; this._typeName = factoryRecord.FactoryTypeName; this._allowDefinition = factoryRecord.AllowDefinition; this._allowExeDefinition = factoryRecord.AllowExeDefinition; this._flags[8] = factoryRecord.AllowLocation; this._flags[0x10] = factoryRecord.RestartOnExternalChanges; this._flags[0x20] = factoryRecord.RequirePermission; this._overrideModeDefault = factoryRecord.OverrideModeDefault; if (factoryRecord.IsUndeclared) { this._flags[0x2000] = true; this._flags[2] = false; this._flags[4] = false; } else { this._flags[0x2000] = false; this._flags[2] = configRecord.GetFactoryRecord(factoryRecord.ConfigKey, false) != null; this._flags[4] = configRecord.IsRootDeclaration(factoryRecord.ConfigKey, false); } this._flags[0x40] = sectionRecord.Locked; this._flags[0x80] = sectionRecord.LockChildren; this._flags[0x4000] = sectionRecord.LockChildrenWithoutFileInput; if (sectionRecord.HasFileInput) { SectionInput fileInput = sectionRecord.FileInput; this._flags[0x800] = fileInput.IsProtectionProviderDetermined; this._protectionProvider = fileInput.ProtectionProvider; SectionXmlInfo sectionXmlInfo = fileInput.SectionXmlInfo; this._configSource = sectionXmlInfo.ConfigSource; this._configSourceStreamName = sectionXmlInfo.ConfigSourceStreamName; this._overrideMode = sectionXmlInfo.OverrideModeSetting; this._flags[0x100] = !sectionXmlInfo.SkipInChildApps; this._protectionProviderName = sectionXmlInfo.ProtectionProviderName; } else { this._flags[0x800] = false; this._protectionProvider = null; } this._configurationSection.AssociateContext(configRecord); }
internal SectionXmlInfo(string configKey, string definitionConfigPath, string targetConfigPath, string subPath, string filename, int lineNumber, object streamVersion, string rawXml, string configSource, string configSourceStreamName, object configSourceStreamVersion, string protectionProviderName, System.Configuration.OverrideModeSetting overrideMode, bool skipInChildApps) { this._configKey = configKey; this._definitionConfigPath = definitionConfigPath; this._targetConfigPath = targetConfigPath; this._subPath = subPath; this._filename = filename; this._lineNumber = lineNumber; this._streamVersion = streamVersion; this._rawXml = rawXml; this._configSource = configSource; this._configSourceStreamName = configSourceStreamName; this._configSourceStreamVersion = configSourceStreamVersion; this._protectionProviderName = protectionProviderName; this._overrideMode = overrideMode; this._skipInChildApps = skipInChildApps; }
internal SectionXmlInfo(string configKey, string definitionConfigPath, string targetConfigPath, string subPath, string filename, int lineNumber, object streamVersion, string rawXml, string configSource, string configSourceStreamName, object configSourceStreamVersion, string protectionProviderName, System.Configuration.OverrideModeSetting overrideMode, bool skipInChildApps) { this._configKey = configKey; this._definitionConfigPath = definitionConfigPath; this._targetConfigPath = targetConfigPath; this._subPath = subPath; this._filename = filename; this._lineNumber = lineNumber; this._streamVersion = streamVersion; this._rawXml = rawXml; this._configSource = configSource; this._configSourceStreamName = configSourceStreamName; this._configSourceStreamVersion = configSourceStreamVersion; this._protectionProviderName = protectionProviderName; this._overrideMode = overrideMode; this._skipInChildApps = skipInChildApps; }
internal void SetRuntimeConfigurationInformation(BaseConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord) { this._flags[1] = true; this._configKey = factoryRecord.ConfigKey; this._group = factoryRecord.Group; this._name = factoryRecord.Name; this._typeName = factoryRecord.FactoryTypeName; this._allowDefinition = factoryRecord.AllowDefinition; this._allowExeDefinition = factoryRecord.AllowExeDefinition; this._flags[8] = factoryRecord.AllowLocation; this._flags[0x10] = factoryRecord.RestartOnExternalChanges; this._flags[0x20] = factoryRecord.RequirePermission; this._overrideModeDefault = factoryRecord.OverrideModeDefault; if (factoryRecord.IsUndeclared) { this._flags[0x2000] = true; this._flags[2] = false; this._flags[4] = false; } else { this._flags[0x2000] = false; this._flags[2] = configRecord.GetFactoryRecord(factoryRecord.ConfigKey, false) != null; this._flags[4] = configRecord.IsRootDeclaration(factoryRecord.ConfigKey, false); } this._flags[0x40] = sectionRecord.Locked; this._flags[0x80] = sectionRecord.LockChildren; this._flags[0x4000] = sectionRecord.LockChildrenWithoutFileInput; if (sectionRecord.HasFileInput) { SectionInput fileInput = sectionRecord.FileInput; this._flags[0x800] = fileInput.IsProtectionProviderDetermined; this._protectionProvider = fileInput.ProtectionProvider; SectionXmlInfo sectionXmlInfo = fileInput.SectionXmlInfo; this._configSource = sectionXmlInfo.ConfigSource; this._configSourceStreamName = sectionXmlInfo.ConfigSourceStreamName; this._overrideMode = sectionXmlInfo.OverrideModeSetting; this._flags[0x100] = !sectionXmlInfo.SkipInChildApps; this._protectionProviderName = sectionXmlInfo.ProtectionProviderName; } else { this._flags[0x800] = false; this._protectionProvider = null; } this._configurationSection.AssociateContext(configRecord); }