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