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