57 references to Host
System.Configuration.ConfigurationManager (57)
System\Configuration\BaseConfigurationRecord.cs (33)
218
_configContext =
Host
.CreateConfigurationContext(ConfigPath, LocationSubPath);
305
return
Host
.PrefetchSection(factoryRecord.Group, factoryRecord.Name);
334
Host
.SupportsChangeNotifications;
335
_flags[SupportsRefresh] = ClassFlags[ClassSupportsRefresh] &&
Host
.SupportsRefresh;
337
_flags[SupportsPath] =
Host
.SupportsPath;
338
_flags[SupportsLocation] =
Host
.SupportsLocation;
342
_flags[IsAboveApplication] =
Host
.IsAboveApplication(_configPath);
380
if (IsLocationConfig &&
Host
.IsLocationApplicable(_configPath))
460
if (
Host
.IsLocationApplicable(_configPath))
533
if (ClassFlags[ClassSupportsDelayedInit] &&
Host
.IsInitDelayed(this))
547
ConfigStreamInfo.StreamName =
Host
.GetStreamName(_configPath);
552
using (Stream stream =
Host
.OpenStreamForRead(ConfigStreamInfo.StreamName))
563
_flags[PrefetchAll] =
Host
.PrefetchAll(_configPath, ConfigStreamInfo.StreamName);
639
Host
.StopMonitoringStreamForChanges(streamInfo.StreamName, ConfigStreamInfo.CallbackDelegate);
698
using (Stream stream =
Host
.OpenStreamForRead(ConfigStreamInfo.StreamName))
905
Host
.RequireCompleteInit(_initDelayedRoot);
1136
return skipInChildApps &&
Host
.IsAboveApplication(configPath);
1364
using (Stream stream =
Host
.OpenStreamForRead(sectionXmlInfo.Filename))
1490
using (Stream stream =
Host
.OpenStreamForRead(configSourceStreamName))
1875
(!parentFactoryRecord.IsGroup || !parentFactoryRecord.IsEquivalentSectionGroupFactory(
Host
, typeName)))
2022
Host
, typeName, allowLocation, allowDefinition, allowExeDefinition, restartOnExternalChanges, requirePermission))
2597
Host
.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, configSource);
2774
Host
.IsDefinitionAllowed(_configPath, ConfigurationAllowDefinition.MachineToWebRoot,
2810
IInternalConfigHost host =
Host
;
2872
string targetConfigPath =
Host
.GetConfigPathFromLocationSubPath(_configPath,
2997
Host
.VerifyDefinitionAllowed(configPath, factoryRecord.AllowDefinition, factoryRecord.AllowExeDefinition,
3004
return
Host
.IsDefinitionAllowed(_configPath, allowDefinition, allowExeDefinition);
3239
object version =
Host
.GetStreamVersion(streamname);
3259
if (_flags[SupportsChangeNotifications])
Host
.StartMonitoringStreamForChanges(streamname, callbackDelegate);
3440
if (
Host
.IsConfigRecordRequired(childConfigPath)) return true;
3509
Host
.StopMonitoringStreamForChanges(streamInfo.StreamName, callbackDelegate);
3538
object currentVersion =
Host
.GetStreamVersion(streamname);
3548
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
;