297 references to HostingEnvironment
System.Data.Services.Design (2)
System\Data\EntityModel\DataServiceBuildProvider.cs (2)
66
string physicalPath =
HostingEnvironment
.MapPath(child.VirtualPath);
132
return
HostingEnvironment
.VirtualPathProvider.GetDirectory(VirtualPath);
System.ServiceModel.Activation (28)
System\ServiceModel\Activation\AspNetPartialTrustHelpers.cs (1)
106
isInPartialTrustOutsideAspNet = !(PartialTrustHelpers.AppDomainFullyTrusted ||
HostingEnvironment
.IsHosted);
System\ServiceModel\Activation\HostingEnvironmentWrapper.cs (15)
29
return
HostingEnvironment
.ApplicationVirtualPath;
35
get { return
HostingEnvironment
.IsHosted; }
46
return
HostingEnvironment
.VirtualPathProvider;
57
HostingEnvironment
.DecrementBusyCount();
64
return
HostingEnvironment
.Impersonate();
71
return
HostingEnvironment
.Impersonate(token);
81
HostingEnvironment
.IncrementBusyCount();
87
return
HostingEnvironment
.MapPath(virtualPath);
99
return
HostingEnvironment
.ApplicationID;
110
return
HostingEnvironment
.Impersonate();
119
return
HostingEnvironment
.Impersonate(token);
129
HostingEnvironment
.RegisterObject(target);
138
HostingEnvironment
.UnregisterObject(target);
160
return
HostingEnvironment
.VirtualPathProvider.FileExists(normalizedVirtualPath);
195
return
HostingEnvironment
.VirtualPathProvider.GetFile(normalizedVirtualPath);
System\ServiceModel\Activation\MsmqHostedTransportConfiguration.cs (1)
33
Uri address = addressing.CreateUri(bindings[i],
HostingEnvironment
.ApplicationVirtualPath, false);
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (6)
52
if (!
HostingEnvironment
.IsHosted)
265
if (
HostingEnvironment
.VirtualPathProvider.DirectoryExists(virtualFileFolder))
275
if (
HostingEnvironment
.VirtualPathProvider.FileExists(virtualFile))
277
activityStream =
HostingEnvironment
.VirtualPathProvider.GetFile(virtualFile).Open();
453
if (
HostingEnvironment
.VirtualPathProvider.FileExists(virtualPath))
455
serviceFileStream =
HostingEnvironment
.VirtualPathProvider.GetFile(virtualPath).Open();
System\ServiceModel\Channels\MsmqHostedTransportManager.cs (3)
30
this.filter = new HostedBindingFilter(
HostingEnvironment
.ApplicationVirtualPath, addressing);
49
string absoluteVirtualPath = VirtualPathUtility.ToAbsolute(virtualPath,
HostingEnvironment
.ApplicationVirtualPath);
179
string virtualPath =
HostingEnvironment
.ApplicationVirtualPath;
System\ServiceModel\ServiceHostingEnvironment.cs (2)
340
ServiceHostingEnvironment.siteName =
HostingEnvironment
.SiteName;
352
ServiceHostingEnvironment.applicationVirtualPath =
HostingEnvironment
.ApplicationVirtualPath;
System.ServiceModel.WasHosting (9)
System\ServiceModel\WasHosting\BaseAppDomainProtocolHandler.cs (1)
117
HostingEnvironment
.UnregisterObject(this);
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (8)
78
Site site = ServerManagerWrapper.GetSite(
HostingEnvironment
.SiteName);
141
HostingEnvironment
.SiteName,
364
Site site = serverManager.Sites[
HostingEnvironment
.SiteName];
416
ConfigurationElement site = WebConfigurationManagerWrapper.GetSite(
HostingEnvironment
.SiteName);
474
string absolutePath = VirtualPathUtility.ToAbsolute(relativeVirtualPath,
HostingEnvironment
.ApplicationVirtualPath);
477
string siteName =
HostingEnvironment
.SiteName;
606
ConfigurationElement site = WebConfigurationManagerWrapper.GetSite(
HostingEnvironment
.SiteName);
677
HostingEnvironment
.ApplicationVirtualPath
System.Web (233)
Administration\WebAdminConfigurationHelper.cs (3)
28
HostingEnvironment
.RegisterObject(this);
41
return
HostingEnvironment
.VirtualPathProvider.GetDirectory(path);
126
HostingEnvironment
.UnregisterObject(this);
Cache\cache.cs (2)
219
NameValueCollection cacheProviderSettings =
HostingEnvironment
.CacheStoreProviderSettings;
249
NameValueCollection cacheProviderSettings =
HostingEnvironment
.CacheStoreProviderSettings;
Cache\SqlCacheDependency.cs (1)
153
if (!System.Web.Hosting.
HostingEnvironment
.IsHosted) {
CachedPathData.cs (6)
114
if (!
HostingEnvironment
.IsHosted) {
118
return GetConfigPathData(
HostingEnvironment
.AppConfigPath);
126
if (!
HostingEnvironment
.IsHosted) {
147
string configPath = WebConfigurationHost.GetConfigPathFromSiteIDAndVPath(
HostingEnvironment
.SiteID, virtualPath);
159
s_appConfigPathLength = (
HostingEnvironment
.IsHosted) ?
HostingEnvironment
.AppConfigPath.Length : WebConfigurationHost.RootWebConfigPath.Length;
Compilation\AssemblyBuilder.cs (2)
644
string physicalPath =
HostingEnvironment
.MapPathInternal(buildProvider.VirtualPath);
1233
string physicalPath =
HostingEnvironment
.MapPathInternal(buildProvider.VirtualPath);
Compilation\BaseCodeDomTreeGenerator.cs (1)
894
pragmaFile =
HostingEnvironment
.MapPathInternal(virtualPath);
Compilation\BrowserCapabilitiesCompiler.cs (2)
111
string physicalDir =
HostingEnvironment
.MapPathInternal(AppBrowsersVirtualDir);
502
String filePath =
HostingEnvironment
.MapPathInternal(virtualPath);
Compilation\BuildManager.cs (6)
408
SetPrecompilationInfo(
HostingEnvironment
.HostingParameters);
882
InvokePreStartInitMethodsCore(methods,
HostingEnvironment
.SetCultures);
1160
Debug.Assert(
HostingEnvironment
.IsHosted);
1920
vdir =
HostingEnvironment
.VirtualPathProvider.GetDirectory(virtualDir);
2993
string sourcePhysicalPath =
HostingEnvironment
.MapPathInternal(vfile.VirtualPath);
3048
string sourcePhysicalDir =
HostingEnvironment
.MapPathInternal(sourceDir.VirtualPath);
Compilation\BuildManagerHost.cs (5)
71
HostingEnvironment
.RegisterObject(this);
80
HostingEnvironment
.UnregisterObject(this);
89
return
HostingEnvironment
.ApplicationHostInternal;
569
HostingEnvironment
.RegisterVirtualPathProviderInternal(_virtualPathProvider);
594
return
HostingEnvironment
.InitializationException;
Compilation\BuildResult.cs (1)
722
using (
HostingEnvironment
.SetCultures()) {
Compilation\BuildResultCache.cs (4)
254
if (
HostingEnvironment
.ShutdownInitiated) {
285
HostingEnvironment
.InitiateShutdownWithoutDemand();
453
if (
HostingEnvironment
.ShutdownInitiated) {
562
if (
HostingEnvironment
.ShutdownInitiated) {
Compilation\CodeDirectoryCompiler.cs (1)
296
VirtualDirectory vdir =
HostingEnvironment
.VirtualPathProvider.GetDirectory(_virtualDir);
Compilation\PageThemeBuildProvider.cs (1)
90
if (
HostingEnvironment
.VirtualPathProvider.DirectoryExists(appThemeVdir)) {
Compilation\ResXBuildProvider.cs (1)
23
string physicalPath =
HostingEnvironment
.MapPath(VirtualPath);
Compilation\TimeStampChecker.cs (1)
81
string path =
HostingEnvironment
.MapPath(virtualPath);
Compilation\WebReferencesBuildProvider.cs (1)
103
string physicalPath =
HostingEnvironment
.MapPath(child.VirtualPath);
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
529
browserDirInfo = new DirectoryInfo(
HostingEnvironment
.MapPathInternal(virtualDir));
Configuration\ExpressServerConfig.cs (1)
64
name =
HostingEnvironment
.SiteNameNoDemand;
Configuration\HostingPreferredMapPath.cs (1)
32
IConfigMapPath hostingConfigMapPath =
HostingEnvironment
.ConfigMapPath;
Configuration\HttpConfigurationSystem.cs (3)
94
HostingEnvironment
.ApplicationVirtualPath, // app path
95
HostingEnvironment
.SiteNameNoDemand, // app site name
96
HostingEnvironment
.SiteID); // app site ID
Configuration\IISMapPath.cs (1)
40
functions =
HostingEnvironment
.SupportFunctions;
Configuration\MetabaseServerConfig.cs (1)
50
_siteIdForCurrentApplication =
HostingEnvironment
.SiteID;
Configuration\MTConfigUtil.cs (5)
167
vpath =
HostingEnvironment
.ApplicationVirtualPathObject;
168
physicalPath =
HostingEnvironment
.ApplicationPhysicalPath;
175
physicalPath =
HostingEnvironment
.MapPath(vpath);
226
physicalPath =
HostingEnvironment
.MapPath(currentVPath);
233
Configuration config = WebConfigurationManager.OpenMappedWebConfiguration(fileMap, vpath.VirtualPathStringNoTrailingSlash,
HostingEnvironment
.SiteName);
Configuration\ProcessHostConfigUtils.cs (1)
40
if (!
HostingEnvironment
.IsUnderIISProcess && !ServerConfig.UseMetabase && s_InitedExternalConfig == 0) {
Configuration\ProcessHostServerConfig.cs (3)
50
if (null ==
HostingEnvironment
.SupportFunctions) {
54
IProcessHostSupportFunctions fns =
HostingEnvironment
.SupportFunctions;
66
_siteNameForCurrentApplication =
HostingEnvironment
.SiteNameNoDemand;
Configuration\RuntimeConfig.cs (2)
217
config = GetLKGRuntimeConfig(System.Web.Hosting.
HostingEnvironment
.ApplicationVirtualPathObject);
710
path = System.Web.Hosting.
HostingEnvironment
.ApplicationVirtualPathObject;
Configuration\RuntimeConfigLKG.cs (1)
16
using ClassHostingEnvironment=System.Web.Hosting.
HostingEnvironment
;
Configuration\serverconfig.cs (4)
71
if (IISExpressVersion != null ||
HostingEnvironment
.IsUnderIISExpressProcess) {
137
if (!
HostingEnvironment
.IsHosted) {
141
else if (
HostingEnvironment
.ApplicationHostInternal is ISAPIApplicationHost) {
145
else if (
HostingEnvironment
.IsUnderIISProcess && !BuildManagerHost.InClientBuildManager) {
Configuration\WebConfigurationHost.cs (5)
118
if (
HostingEnvironment
.IsHosted) {
119
appSiteName =
HostingEnvironment
.SiteNameNoDemand;
120
appSiteID =
HostingEnvironment
.SiteID;
191
else if (
HostingEnvironment
.IsHosted) {
730
if (
HostingEnvironment
.IsHosted) {
Configuration\WebConfigurationManager.cs (1)
69
if (
HostingEnvironment
.IsHosted) {
DataAccess\SqlConnectionHelper.cs (1)
99
if (
HostingEnvironment
.IsHosted)
ErrorFormatter.cs (2)
809
return
HostingEnvironment
.MapPathInternal(virtualPath);
1552
_physicalPath =
HostingEnvironment
.MapPath(_virtualPath);
FileChangesMonitor.cs (1)
155
if (
HostingEnvironment
.FcnSkipReadAndCacheDacls) {
Hosting\AppDomainProtocolHandler.cs (2)
14
HostingEnvironment
.RegisterObject(this);
35
HostingEnvironment
.UnregisterObject(this);
Hosting\ApplicationManager.cs (25)
52
internal
HostingEnvironment
HostEnv { get; set; }
179
if (
HostingEnvironment
.IsHosted)
180
_theAppManager =
HostingEnvironment
.GetApplicationManager();
287
HostingEnvironment
env = GetAppDomainWithHostingEnvironment(appId, appHost, hostingParameters);
388
HostingEnvironment
env = ac.HostEnv;
408
HostingEnvironment
env = ac.HostEnv;
453
HostingEnvironment
env = ac.HostEnv;
480
HostingEnvironment
env = ac.HostEnv;
495
HostingEnvironment
env = ac.HostEnv;
536
HostingEnvironment
env = ac.HostEnv;
556
HostingEnvironment
env = ac.HostEnv;
581
HostingEnvironment
hostEnv = ac.HostEnv;
634
HostingEnvironment
hostEnv;
747
internal void HostingEnvironmentShutdownInitiated(String appId,
HostingEnvironment
env) {
787
HostingEnvironment
h = ac.HostEnv;
837
HostingEnvironment
env = CreateAppDomainWithHostingEnvironmentAndReportErrors(appId, appHost, hostingParameters);
846
private
HostingEnvironment
GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) {
850
HostingEnvironment
env = ac.HostEnv;
870
private
HostingEnvironment
CreateAppDomainWithHostingEnvironmentAndReportErrors(
885
private
HostingEnvironment
CreateAppDomainWithHostingEnvironment(
1245
Type hostType = typeof(
HostingEnvironment
);
1311
HostingEnvironment
env = (h != null) ? h.Unwrap() as
HostingEnvironment
: null;
1539
private readonly
HostingEnvironment
_hostEnv;
1542
internal ApplicationResumeStateContainer(
HostingEnvironment
hostEnv, IntPtr resumeState) {
Hosting\HostingEnvironment.cs (1)
100
private static
HostingEnvironment
_theHostingEnvironment;
Hosting\IIS7WorkerRequest.cs (1)
2539
return
HostingEnvironment
.MapPathInternal(path);
Hosting\IPipelineRuntime.cs (7)
237
HostingEnvironment
.RegisterObject(this);
248
HostingEnvironment
.SetupStopListeningHandler();
256
if (!
HostingEnvironment
.StopListeningWasCalled && !
HostingEnvironment
.ShutdownInitiated) {
264
HostingEnvironment
.InitiateShutdownWithoutDemand();
395
return
HostingEnvironment
.ShutdownInitiated;
716
HostingEnvironment
.UnregisterObject(this);
Hosting\ISAPIApplicationHost.cs (1)
54
HostingEnvironment
.SupportFunctions = _functions;
Hosting\ISAPIRuntime.cs (3)
103
HostingEnvironment
.RegisterObject(this);
131
HostingEnvironment
.UnregisterObject(this);
228
HostingEnvironment
.UnregisterObject(this);
Hosting\ISAPIWorkerRequest.cs (2)
1484
return
HostingEnvironment
.MapPathInternal(path);
2129
_appPath =
HostingEnvironment
.ApplicationVirtualPath;
Hosting\MapPathBasedVirtualPathProvider.cs (4)
36
string physicalDependency =
HostingEnvironment
.MapPathInternal(virtualDependency);
52
string physicalDependency =
HostingEnvironment
.MapPathInternal(virtualDependency);
79
string physicalPath =
HostingEnvironment
.MapPathInternal(virtualPath);
167
_physicalPath =
HostingEnvironment
.MapPathInternal(VirtualPath);
Hosting\PreloadHost.cs (2)
17
HostingEnvironment
.RegisterObject(this);
47
HostingEnvironment
.UnregisterObject(this);
Hosting\ProcessHost.cs (3)
328
HostingEnvironment
.SupportFunctions = functions;
1320
HostingEnvironment
.UnregisterObject(this);
1325
Debug.Assert(
HostingEnvironment
.IsHosted, "HostingEnvironment.IsHosted" );
Hosting\VirtualPathProvider.cs (4)
260
VirtualPathProvider vpathProvider =
HostingEnvironment
.VirtualPathProvider;
270
VirtualPathProvider vpathProvider =
HostingEnvironment
.VirtualPathProvider;
280
VirtualPathProvider vpathProvider =
HostingEnvironment
.VirtualPathProvider;
291
return
HostingEnvironment
.VirtualPathProvider.DirectoryExists(virtualDir);
HttpApplicationFactory.cs (1)
334
HostingEnvironment
.MapPathInternal(fileName), handler);
HttpContext.cs (2)
2025
if (HttpRuntime.IsOnUNCShareInternal &&
HostingEnvironment
.ApplicationIdentityToken != IntPtr.Zero) {
2152
IntPtr token =
HostingEnvironment
.ApplicationIdentityToken;
HttpRequest.cs (1)
1683
_pathTranslated =
HostingEnvironment
.MapPathInternal(FilePath);
HttpResponse.cs (2)
2733
fn =
HostingEnvironment
.MapPath(fn);
3680
VirtualPathProvider vpp =
HostingEnvironment
.VirtualPathProvider;
HttpRuntime.cs (23)
320
Debug.Assert(
HostingEnvironment
.IsHosted);
333
Debug.Assert(!
HostingEnvironment
.IsHosted);
338
_fcm = new FileChangesMonitor(
HostingEnvironment
.FcnMode);
413
HostingEnvironment
.InitializeObjectCacheHost();
877
AppDomainAppVirtualPath,
HostingEnvironment
.IsDevelopmentEnvironment);
1297
if (
HostingEnvironment
.HasHostingIdentity) {
1376
HostingEnvironment
.IncrementBusyCount();
1380
HostingEnvironment
.DecrementBusyCount();
1665
HostingEnvironment
.IncrementBusyCount();
1718
HostingEnvironment
.IncrementBusyCount();
1834
HostingEnvironment
.DecrementBusyCount();
2260
if (!
HostingEnvironment
.ShutdownInitiated) {
2262
HostingEnvironment
.InitiateShutdownWithoutDemand();
2267
if (
HostingEnvironment
.ShutdownInProgress) {
2427
if (
HostingEnvironment
.IsHosted) {
2429
HostingEnvironment
.InitiateShutdownWithoutDemand();
2469
return !
HostingEnvironment
.IsHosted || TrustLevel != null;
2519
string physicalPath =
HostingEnvironment
.MapPath(virtualPath);
2549
Debug.Assert(TrustLevel != null || !
HostingEnvironment
.IsHosted, "TrustLevel != null || !HostingEnvironment.IsHosted");
2580
Debug.Assert(TrustLevel != null || !
HostingEnvironment
.IsHosted);
2607
Debug.Assert(TrustLevel != null || !
HostingEnvironment
.IsHosted);
2636
Debug.Assert(TrustLevel != null || !
HostingEnvironment
.IsHosted);
2679
Debug.Assert(TrustLevel != null || !
HostingEnvironment
.IsHosted);
IdleTimeoutMonitor.cs (3)
62
if (
HostingEnvironment
.ShutdownInitiated)
66
if (
HostingEnvironment
.BusyCount != 0)
80
HostingEnvironment
.InitiateShutdownWithoutDemand();
ImpersonationContext.cs (2)
150
ImpersonateToken(new HandleRef(this,
HostingEnvironment
.ApplicationIdentityToken));
172
token =
HostingEnvironment
.ApplicationIdentityToken;
Management\WebEvents.cs (2)
2092
s_appdomainCount =
HostingEnvironment
.AppDomainsCount;
2371
if (
HostingEnvironment
.InClientBuildManager) {
Profile\HttpProfileBase.cs (4)
221
if (
HostingEnvironment
.IsHosted)
361
if (
HostingEnvironment
.IsHosted)
389
bool fAnonEnabled = (
HostingEnvironment
.IsHosted ? AnonymousIdentificationModule.Enabled : true);
618
if (
HostingEnvironment
.IsHosted)
Profile\ProfileManager.cs (1)
373
bool canInitializeDefaultProvider = (!
HostingEnvironment
.IsHosted || BuildManager.PreStartInitStage == PreStartInitStage.AfterPreStartInit);
Profile\SqlProfileProvider.cs (2)
146
if (context != null &&
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_PROFILE_BEGIN, HttpContext.Current.WorkerRequest);
194
if (context != null &&
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_PROFILE_END, HttpContext.Current.WorkerRequest, userName);
RequestQueue.cs (1)
141
_iis6 =
HostingEnvironment
.IsUnderIIS6Process;
Routing\RouteCollection.cs (1)
42
return
HostingEnvironment
.VirtualPathProvider;
Security\ADMembershipProvider.cs (1)
310
if (System.Web.Hosting.
HostingEnvironment
.IsHosted)
Security\AntiXss\AntiXssEncoder.cs (1)
73
if (
HostingEnvironment
.IsHosted) {
Security\AuthStoreRoleProvider.cs (14)
391
if (
HostingEnvironment
.IsHosted && _XmlFileName != null )
404
if(
HostingEnvironment
.IsHosted && _XmlFileName != null )
432
if(
HostingEnvironment
.IsHosted && _XmlFileName != null )
448
if(
HostingEnvironment
.IsHosted && _XmlFileName != null )
491
if(
HostingEnvironment
.IsHosted && _XmlFileName != null) {
510
if (
HostingEnvironment
.IsHosted && _XmlFileName != null) {
544
if (
HostingEnvironment
.IsHosted)
562
if(
HostingEnvironment
.IsHosted )
602
if (
HostingEnvironment
.IsHosted && _XmlFileName != null )
647
if (
HostingEnvironment
.IsHosted)
732
if(
HostingEnvironment
.IsHosted && _XmlFileName != null )
751
if(
HostingEnvironment
.IsHosted && _XmlFileName != null )
779
if(
HostingEnvironment
.IsHosted && _XmlFileName != null )
796
if(
HostingEnvironment
.IsHosted && _XmlFileName != null )
Security\Membership.cs (4)
375
if (
HostingEnvironment
.IsHosted)
389
(!
HostingEnvironment
.IsHosted || BuildManager.PreStartInitStage == PreStartInitStage.AfterPreStartInit);
461
if (
HostingEnvironment
.IsHosted) {
590
if (
HostingEnvironment
.IsHosted) {
Security\RolePrincipal.cs (3)
101
if (
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null)
143
if (
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null)
150
if (
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null)
Security\Roles.cs (9)
68
if (
HostingEnvironment
.IsHosted && !HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Low))
96
if (
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null)
114
if (
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) {
132
if (
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null)
153
if (
HostingEnvironment
.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) {
491
if (
HostingEnvironment
.IsHosted)
531
if (
HostingEnvironment
.IsHosted) {
552
bool canInitializeDefaultProvider = (!
HostingEnvironment
.IsHosted || BuildManager.PreStartInitStage == PreStartInitStage.AfterPreStartInit);
605
if (
HostingEnvironment
.IsHosted) {
Security\WindowsTokenRoleProvider.cs (1)
192
if (
HostingEnvironment
.IsHosted) {
State\SessionIDManager.cs (1)
102
s_appPath =
HostingEnvironment
.ApplicationVirtualPathObject.VirtualPathString;
StaticFileHandler.cs (3)
299
if (
HostingEnvironment
.UsingMapPathBasedVirtualPathProvider) {
306
if (
HostingEnvironment
.VirtualPathProvider.FileExists(virtualPath)) {
307
virtualFile =
HostingEnvironment
.VirtualPathProvider.GetFile(virtualPath);
UI\BaseParser.cs (1)
111
if (
HostingEnvironment
.IsHosted) {
UI\Control.cs (2)
2184
vfile =
HostingEnvironment
.VirtualPathProvider.GetFile(path);
2214
if (physicalPath == null &&
HostingEnvironment
.UsingMapPathBasedVirtualPathProvider) {
UI\PageParser.cs (2)
138
virtualPathToFileMappingState =
HostingEnvironment
.AddVirtualPathToFileMapping(
148
HostingEnvironment
.ClearVirtualPathToFileMapping(virtualPathToFileMappingState);
UI\TagNameToTypeMapper.cs (1)
147
if (!
HostingEnvironment
.IsHosted)
UI\Util.cs (1)
299
HostingEnvironment
.AppDomainUniqueInteger.ToString(
UI\WebControls\XmlDataSource.cs (1)
505
if (
HostingEnvironment
.UsingMapPathBasedVirtualPathProvider) {
Util\AppSettings.cs (1)
165
if (!
HostingEnvironment
.IsHosted) {
Util\SecUtil.cs (1)
30
string appName =
HostingEnvironment
.ApplicationVirtualPath;
Util\SmtpMail.cs (1)
404
if (
HostingEnvironment
.IsHosted) {
Util\StringUtil.cs (1)
305
ApplicationManager appManager =
HostingEnvironment
.GetApplicationManager();
VirtualPath.cs (11)
266
return
HostingEnvironment
.MapPath(this);
270
return
HostingEnvironment
.MapPathInternal(this);
274
return
HostingEnvironment
.MapPathInternal(this, permitNull);
278
return
HostingEnvironment
.MapPathInternal(this, baseVirtualDir, allowCrossAppMapping);
284
return
HostingEnvironment
.VirtualPathProvider.GetFileHash(this, virtualPathDependencies);
288
return
HostingEnvironment
.VirtualPathProvider.GetCacheDependency(
293
return
HostingEnvironment
.VirtualPathProvider.FileExists(this);
297
return
HostingEnvironment
.VirtualPathProvider.DirectoryExists(this);
301
return
HostingEnvironment
.VirtualPathProvider.GetFile(this);
306
return
HostingEnvironment
.VirtualPathProvider.GetDirectory(this);
310
return
HostingEnvironment
.VirtualPathProvider.GetCacheKey(this);
XmlSiteMapProvider.cs (1)
587
_filename =
HostingEnvironment
.MapPathInternal(_normalizedVirtualPath);
System.Web.DynamicData (4)
DynamicData\DynamicDataRouteHandler.cs (1)
24
VirtualPathProvider =
HostingEnvironment
.VirtualPathProvider;
DynamicData\SimpleFieldTemplateFactory.cs (1)
16
: this(
HostingEnvironment
.VirtualPathProvider) {
DynamicData\Util\FileChangeNotifier.cs (1)
24
_vpp =
HostingEnvironment
.VirtualPathProvider;
DynamicData\Util\TemplateFactory.cs (1)
71
_vpp =
HostingEnvironment
.VirtualPathProvider;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSource.cs (1)
275
if (!String.IsNullOrEmpty(value) && System.Web.Hosting.
HostingEnvironment
.IsHosted)
System\Data\WebControls\EntityDataSourceView.cs (1)
1147
if (System.Web.Hosting.
HostingEnvironment
.IsHosted)
System.Web.Extensions (10)
Compilation\WCFBuildProvider.cs (5)
107
string physicalPath =
HostingEnvironment
.MapPath(child.VirtualPath);
126
string physicalPath =
HostingEnvironment
.MapPath(child.VirtualPath);
392
return
HostingEnvironment
.VirtualPathProvider.GetDirectory(VirtualPath);
574
mapping = new System.Web.Configuration.VirtualDirectoryMapping(
HostingEnvironment
.ApplicationPhysicalPath, true);
578
return System.Web.Configuration.WebConfigurationManager.OpenMappedWebConfiguration(fileMap, "/", System.Web.Hosting.
HostingEnvironment
.SiteName);
Handlers\ScriptResourceHandler.cs (2)
300
VirtualPathProvider vpp =
HostingEnvironment
.VirtualPathProvider;
747
VirtualPathProvider vpp =
HostingEnvironment
.VirtualPathProvider;
Script\Services\WebServiceData.cs (2)
99
if (
HostingEnvironment
.VirtualPathProvider.FileExists(virtualPath)) {
124
CacheDependency cd =
HostingEnvironment
.VirtualPathProvider.GetCacheDependency(virtualPath, deps.VirtualPaths, DateTime.Now);
UI\ScriptManager.cs (1)
320
if (
HostingEnvironment
.IsHosted) {
System.WorkflowServices (7)
System\ServiceModel\Activation\WorkflowServiceHostFactory.cs (7)
33
if (!
HostingEnvironment
.IsHosted)
58
impersonationContext =
HostingEnvironment
.Impersonate();
63
if (
HostingEnvironment
.VirtualPathProvider.FileExists(xomlVirtualPath))
65
workflowDefinitionStream =
HostingEnvironment
.VirtualPathProvider.GetFile(xomlVirtualPath).Open();
68
if (
HostingEnvironment
.VirtualPathProvider.FileExists(ruleFilePath))
70
ruleDefinitionStream =
HostingEnvironment
.VirtualPathProvider.GetFile(ruleFilePath).Open();
150
impersonationContext =
HostingEnvironment
.Impersonate();
System.Xaml.Hosting (2)
System\Xaml\Hosting\HostingEnvironmentWrapper.cs (1)
17
return
HostingEnvironment
.Impersonate();
System\Xaml\Hosting\XamlHttpHandlerFactory.cs (1)
83
if (
HostingEnvironment
.VirtualPathProvider.FileExists(path))