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