64 references to Host
System.Configuration (64)
System\Configuration\BaseConfigurationRecord.cs (39)
256return Host.PrefetchSection(factoryRecord.Group, factoryRecord.Name); 262context = Host.Impersonate(); 319Host.GetRestrictedPermissions(this, out permissionSet, out isHostReady); 354_flags[SupportsChangeNotifications] = ClassFlags[ClassSupportsChangeNotifications] && Host.SupportsChangeNotifications; 355_flags[SupportsRefresh] = ClassFlags[ClassSupportsRefresh] && Host.SupportsRefresh; 357_flags[SupportsPath] = Host.SupportsPath; 358_flags[SupportsLocation] = Host.SupportsLocation; 362_flags[IsAboveApplication] = Host.IsAboveApplication(_configPath); 365_flags[IsTrusted] = Host.IsTrustedConfigPath(_configPath); 400if (IsLocationConfig && Host.IsLocationApplicable(_configPath)) { 509if (Host.IsLocationApplicable(_configPath)) { 586if (ClassFlags[ClassSupportsDelayedInit] && Host.IsInitDelayed(this)) { 609ConfigStreamInfo.StreamName = Host.GetStreamName(_configPath); 613using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) { 622_flags[PrefetchAll] = Host.PrefetchAll(_configPath, ConfigStreamInfo.StreamName); 700Host.StopMonitoringStreamForChanges(streamInfo.StreamName, ConfigStreamInfo.CallbackDelegate); 771using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) { 1075Host.RequireCompleteInit(_initDelayedRoot); 1505return (skipInChildApps && Host.IsAboveApplication(configPath)); 1601bool isTrusted = Host.IsTrustedConfigPath(input.SectionXmlInfo.DefinitionConfigPath); 1616bool isTrusted = Host.IsTrustedConfigPath(locationInput.SectionXmlInfo.DefinitionConfigPath); 1788if (isTrustedWithoutAptca && !Host.IsFullTrustSectionWithoutAptcaAllowed(this)) { 1799using (Stream stream = Host.OpenStreamForRead(sectionXmlInfo.Filename)) { 1925using (Stream stream = Host.OpenStreamForRead(configSourceStreamName)) { 2393!parentFactoryRecord.IsEquivalentSectionGroupFactory(Host, typeName))) { 2556else if (!parentFactoryRecord.IsEquivalentSectionFactory(Host, typeName, allowLocation, allowDefinition, allowExeDefinition, restartOnExternalChanges, requirePermission)) { 3164configSourceStreamName = Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, configSource); 3340Host.IsDefinitionAllowed(_configPath, ConfigurationAllowDefinition.MachineToWebRoot, ConfigurationAllowExeDefinition.MachineOnly)) { 3371IInternalConfigHost host = Host; 3436string targetConfigPath = Host.GetConfigPathFromLocationSubPath(_configPath, locationSectionRecord.SectionXmlInfo.SubPath); 3556Host.VerifyDefinitionAllowed(configPath, factoryRecord.AllowDefinition, factoryRecord.AllowExeDefinition, errorInfo); 3560return Host.IsDefinitionAllowed(_configPath, allowDefinition, allowExeDefinition); 3841object version = Host.GetStreamVersion(streamname); 3868Host.StartMonitoringStreamForChanges(streamname, callbackDelegate); 4067if (Host.IsConfigRecordRequired(childConfigPath)) { 4140Host.StopMonitoringStreamForChanges(streamInfo.StreamName, callbackDelegate); 4169object currentVersion = Host.GetStreamVersion(streamname); 4182return Host.DecryptSection(encryptedXml, protectionProvider, protectedConfig); 4325_configContext = Host.CreateConfigurationContext(ConfigPath, LocationSubPath);
System\Configuration\ConfigurationSectionGroup.cs (1)
166if (factoryRecord != null && !factoryRecord.IsEquivalentType(_configRecord.Host, typeName)) {
System\Configuration\MgmtConfigurationRecord.cs (21)
104return (UpdateConfigHost) Host; 126Type type = TypeUtil.GetTypeWithReflectionPermission(Host, factoryRecord.FactoryTypeName, true); 182type = TypeUtil.GetTypeWithReflectionPermission(Host, factoryRecord.FactoryTypeName, true); 645newConfigSourceStreamName = Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, newConfigSource); 793typeName = Host.GetConfigTypeName(configSection.GetType()); 974typeName = Host.GetConfigTypeName(configSectionGroup.GetType()); 1158if (!Host.IsRemote && _streamInfoUpdates.Contains(filename)) { 1177UpdateConfigHost.AddStreamname(ConfigStreamInfo.StreamName, filename, Host.IsRemote); 1187UpdateConfigHost.AddStreamname(streamInfo.StreamName, newStreamName, Host.IsRemote); 1204using (Stream streamRead = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) { 1246using (Stream streamWrite = Host.OpenStreamForWrite(ConfigStreamInfo.StreamName, null, ref writeContext)) { 1264Host.WriteCompleted(ConfigStreamInfo.StreamName, false, writeContext); 1278Host.WriteCompleted(ConfigStreamInfo.StreamName, true, writeContext); 1815string encryptedSection = Host.EncryptSection(updatedXml, configSection.SectionInformation.ProtectionProvider, protectedConfig); 2824elementLocationPathApplies = StringUtil.EqualsIgnoreCase(ConfigPath, Host.GetConfigPathFromLocationSubPath(Parent.ConfigPath, locationSubPathAttribute)); 2891if (HasRemovedSectionsOrGroups && !IsLocationConfig && Host.SupportsLocation) { 3088using (Stream streamRead = Host.OpenStreamForRead(configSourceStreamName)) { 3107if (Host.IsRemote) { 3120using (Stream streamWrite = Host.OpenStreamForWrite(configSourceStreamName, templateStreamName, ref writeContext)) { 3143Host.WriteCompleted(configSourceStreamName, false, writeContext); 3157Host.WriteCompleted(configSourceStreamName, true, writeContext);
System\Configuration\RuntimeConfigurationRecord.cs (2)
150Type type = TypeUtil.GetTypeWithReflectionPermission(configRecord.Host, factoryRecord.FactoryTypeName, true); 261object configContext = configRecord.Host.CreateDeprecatedConfigContext(configRecord.ConfigPath);
System\Configuration\SectionInformation.cs (1)
750host = _configRecord.Host;