57 references to Host
System.Configuration.ConfigurationManager (57)
System\Configuration\BaseConfigurationRecord.cs (33)
222_configContext = Host.CreateConfigurationContext(ConfigPath, LocationSubPath); 309return Host.PrefetchSection(factoryRecord.Group, factoryRecord.Name); 338Host.SupportsChangeNotifications; 339_flags[SupportsRefresh] = ClassFlags[ClassSupportsRefresh] && Host.SupportsRefresh; 341_flags[SupportsPath] = Host.SupportsPath; 342_flags[SupportsLocation] = Host.SupportsLocation; 346_flags[IsAboveApplication] = Host.IsAboveApplication(_configPath); 384if (IsLocationConfig && Host.IsLocationApplicable(_configPath)) 464if (Host.IsLocationApplicable(_configPath)) 537if (ClassFlags[ClassSupportsDelayedInit] && Host.IsInitDelayed(this)) 551ConfigStreamInfo.StreamName = Host.GetStreamName(_configPath); 556using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 567_flags[PrefetchAll] = Host.PrefetchAll(_configPath, ConfigStreamInfo.StreamName); 643Host.StopMonitoringStreamForChanges(streamInfo.StreamName, ConfigStreamInfo.CallbackDelegate); 702using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 909Host.RequireCompleteInit(_initDelayedRoot); 1140return skipInChildApps && Host.IsAboveApplication(configPath); 1368using (Stream stream = Host.OpenStreamForRead(sectionXmlInfo.Filename)) 1494using (Stream stream = Host.OpenStreamForRead(configSourceStreamName)) 1879(!parentFactoryRecord.IsGroup || !parentFactoryRecord.IsEquivalentSectionGroupFactory(Host, typeName))) 2026Host, typeName, allowLocation, allowDefinition, allowExeDefinition, restartOnExternalChanges, requirePermission)) 2601Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, configSource); 2778Host.IsDefinitionAllowed(_configPath, ConfigurationAllowDefinition.MachineToWebRoot, 2814IInternalConfigHost host = Host; 2876string targetConfigPath = Host.GetConfigPathFromLocationSubPath(_configPath, 3001Host.VerifyDefinitionAllowed(configPath, factoryRecord.AllowDefinition, factoryRecord.AllowExeDefinition, 3008return Host.IsDefinitionAllowed(_configPath, allowDefinition, allowExeDefinition); 3243object version = Host.GetStreamVersion(streamname); 3263if (_flags[SupportsChangeNotifications]) Host.StartMonitoringStreamForChanges(streamname, callbackDelegate); 3444if (Host.IsConfigRecordRequired(childConfigPath)) return true; 3513Host.StopMonitoringStreamForChanges(streamInfo.StreamName, callbackDelegate); 3542object currentVersion = Host.GetStreamVersion(streamname); 3552return Host.DecryptSection(encryptedXml, protectionProvider, protectedConfig);
System\Configuration\ConfigurationSectionGroup.cs (1)
53if ((factoryRecord != null) && !factoryRecord.IsEquivalentType(_configRecord.Host, typeName))
System\Configuration\MgmtConfigurationRecord.cs (20)
127Type type = TypeUtil.GetType(Host, factoryRecord.FactoryTypeName, throwOnError: true); 169: TypeUtil.GetType(Host, factoryRecord.FactoryTypeName, true); 551newConfigSourceStreamName = Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, 686string typeName = configSection.SectionInformation.Type ?? Host.GetConfigTypeName(configSection.GetType()); 840string typeName = configSectionGroup.Type ?? Host.GetConfigTypeName(configSectionGroup.GetType()); 972if (!Host.IsRemote && _streamInfoUpdates.Contains(filename)) 987UpdateConfigHost.AddStreamname(ConfigStreamInfo.StreamName, filename, Host.IsRemote); 998UpdateConfigHost.AddStreamname(streamInfo.StreamName, newStreamName, Host.IsRemote); 1016using (Stream streamRead = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 1060using (Stream streamWrite = Host.OpenStreamForWrite(ConfigStreamInfo.StreamName, null, 1087if (streamOpened) Host.WriteCompleted(ConfigStreamInfo.StreamName, false, writeContext); 1100Host.WriteCompleted(ConfigStreamInfo.StreamName, true, writeContext); 1664string encryptedSection = Host.EncryptSection(updatedXml, 2702Host.GetConfigPathFromLocationSubPath(Parent.ConfigPath, locationSubPathAttribute)); 2784if (HasRemovedSectionsOrGroups && !IsLocationConfig && Host.SupportsLocation) 2990using (Stream streamRead = Host.OpenStreamForRead(configSourceStreamName)) 3015string templateStreamName = Host.IsRemote ? null : ConfigStreamInfo.StreamName; 3018Stream streamWrite = Host.OpenStreamForWrite(configSourceStreamName, templateStreamName, 3041if (streamOpened) Host.WriteCompleted(configSourceStreamName, false, writeContext); 3052Host.WriteCompleted(configSourceStreamName, true, writeContext);
System\Configuration\RuntimeConfigurationRecord.cs (2)
95Type type = TypeUtil.GetType(configRecord.Host, factoryRecord.FactoryTypeName, 179object configContext = configRecord.Host.CreateDeprecatedConfigContext(configRecord.ConfigPath);
System\Configuration\SectionInformation.cs (1)
375if (_configRecord != null) host = _configRecord.Host;