98 references to ServiceHostingEnvironment
System.ServiceModel.Activation (98)
System\ServiceModel\Activation\ApplyHostConfigurationBehavior.cs (2)
22if (service.Description.Endpoints != null && ServiceHostingEnvironment.MultipleSiteBindingsEnabled) 34if (ServiceHostingEnvironment.MultipleSiteBindingsEnabled)
System\ServiceModel\Activation\AspNetRouteServiceHttpHandler.cs (2)
37ServiceHostingEnvironment.SafeEnsureInitialized(); 48ServiceHostingEnvironment.SafeEnsureInitialized();
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (19)
53return ServiceHostingEnvironment.AspNetCompatibilityEnabled; 61if (ServiceHostingEnvironment.CurrentVirtualPath != null) 63return ServiceHostingEnvironment.CurrentVirtualPath + "web.config"; 76return ServiceHostingEnvironment.IsConfigurationBased; 84return ServiceHostingEnvironment.CurrentVirtualPath; 92return ServiceHostingEnvironment.XamlFileBaseLocation; 182virtualPath = ServiceHostingEnvironment.FullVirtualPath; 192string application = ServiceHostingEnvironment.ApplicationVirtualPath; 198return string.Format(CultureInfo.InvariantCulture, "{0}{1}|{2}", ServiceHostingEnvironment.SiteName, servicePath, serviceName); 203HostedAspNetEnvironment.cachedServiceReference = string.Format(CultureInfo.InvariantCulture, "{0}{1}", ServiceHostingEnvironment.SiteName, ServiceHostingEnvironment.ApplicationVirtualPath); 311if (!ServiceHostingEnvironment.IsSimpleApplicationHost) 321if (ServiceHostingEnvironment.IsSimpleApplicationHost) 370else if (ServiceHostingEnvironment.AspNetCompatibilityEnabled && 375else if (!ServiceHostingEnvironment.AspNetCompatibilityEnabled && 495return GetSectionFromWebConfigurationManager(sectionPath, ServiceHostingEnvironment.FullVirtualPath); 502return UnsafeGetSectionFromWebConfigurationManager(sectionPath, ServiceHostingEnvironment.FullVirtualPath); 509return ServiceHostingEnvironment.IsSimpleApplicationHost; 518string virtualPath = ServiceHostingEnvironment.CurrentVirtualPath;
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (10)
113if (ServiceHostingEnvironment.IsConfigurationBasedService(context, out this.configurationBasedServiceVirtualPath)) 136ServiceHostingEnvironment.IsConfigurationBasedService(context, out this.configurationBasedServiceVirtualPath)) 166if (ServiceHostingEnvironment.AspNetCompatibilityEnabled) 181if (!ServiceHostingEnvironment.AspNetCompatibilityEnabled && !this.ensureWFService) 189ServiceHostingEnvironment.IncrementRequestCount(ref this.eventTraceActivity, context.Request.AppRelativeCurrentExecutionFilePath); 580if (mode == ReadEntityBodyMode.None && ServiceHostingEnvironment.AspNetCompatibilityEnabled && AppSettings.UseClassicReadEntityMode) 661ServiceHostingEnvironment.DecrementRequestCount(this.eventTraceActivity); 749if (!ServiceHostingEnvironment.EnsureWorkflowService(relativeVirtualPath)) 766if (ServiceHostingEnvironment.IsSimpleApplicationHost) 797ServiceHostingEnvironment.EnsureServiceAvailableFast(relativeVirtualPath, this.eventTraceActivity);
System\ServiceModel\Activation\HostedHttpTransportManager.cs (2)
158new StringTraceRecord("IsRecycling", ServiceHostingEnvironment.IsRecycling.ToString(CultureInfo.CurrentCulture)), 162if (ServiceHostingEnvironment.IsRecycling)
System\ServiceModel\Activation\HostedImpersonationContext.cs (1)
35if (ServiceHostingEnvironment.AspNetCompatibilityEnabled)
System\ServiceModel\Activation\HostedNamedPipeTransportManager.cs (1)
133ServiceHostingEnvironment.EnsureServiceAvailable(address.LocalPath);
System\ServiceModel\Activation\HostedTcpTransportManager.cs (1)
59ServiceHostingEnvironment.EnsureServiceAvailable(address.LocalPath);
System\ServiceModel\Activation\HostedTransportConfigurationManager.cs (1)
146ServiceHostingEnvironment.EnsureInitialized();
System\ServiceModel\Activation\HostingMessageProperty.cs (3)
27Fx.Assert(ServiceHostingEnvironment.IsHosted, "should only be called in the hosted path"); 29if (ServiceHostingEnvironment.AspNetCompatibilityEnabled) 73if (ServiceHostingEnvironment.AspNetCompatibilityEnabled)
System\ServiceModel\Activation\HttpHandler.cs (1)
27ServiceHostingEnvironment.SafeEnsureInitialized();
System\ServiceModel\Activation\HttpHostedTransportConfiguration.cs (2)
68if (ServiceHostingEnvironment.MultipleSiteBindingsEnabled) 117if (ServiceHostingEnvironment.MultipleSiteBindingsEnabled)
System\ServiceModel\Activation\HttpModule.cs (9)
42ServiceHostingEnvironment.SafeEnsureInitialized(); 65ServiceHostingEnvironment.ServiceType serviceType = ServiceHostingEnvironment.GetServiceType(extension); 67if (serviceType == ServiceHostingEnvironment.ServiceType.Unknown) 73if (ServiceHostingEnvironment.AspNetCompatibilityEnabled) 77if (serviceType == ServiceHostingEnvironment.ServiceType.Workflow && ServiceHostingEnvironment.IsConfigurationBasedService(application)) 84else if (serviceType == ServiceHostingEnvironment.ServiceType.WCF) 88else if (serviceType == ServiceHostingEnvironment.ServiceType.Workflow)
System\ServiceModel\Activation\MetabaseSettings.cs (3)
161if (!ServiceHostingEnvironment.IsSimpleApplicationHost) 202if (ServiceHostingEnvironment.IsSimpleApplicationHost) 517int index = applicationID.IndexOf(IISConstants.AboPathDelimiter, ServiceHostingEnvironment.ISAPIApplicationIdPrefix.Length);
System\ServiceModel\Activation\ServiceHttpHandlerFactory.cs (2)
50ServiceHostingEnvironment.SafeEnsureInitialized(); 61ServiceHostingEnvironment.SafeEnsureInitialized();
System\ServiceModel\Activation\ServiceHttpModule.cs (9)
62ServiceHostingEnvironment.SafeEnsureInitialized(); 85ServiceHostingEnvironment.ServiceType serviceType = ServiceHostingEnvironment.GetServiceType(extension); 87if (serviceType == ServiceHostingEnvironment.ServiceType.Unknown) 93if (ServiceHostingEnvironment.AspNetCompatibilityEnabled) 97if (serviceType == ServiceHostingEnvironment.ServiceType.Workflow && ServiceHostingEnvironment.IsConfigurationBasedService(application)) 107if (serviceType == ServiceHostingEnvironment.ServiceType.WCF) 111if (serviceType == ServiceHostingEnvironment.ServiceType.Workflow)
System\ServiceModel\Activation\ServiceParser.cs (1)
41const string Delimiter = ServiceHostingEnvironment.ServiceParserDelimiter;
System\ServiceModel\Activation\ServiceRoute.cs (2)
30ServiceHostingEnvironment.EnsureInitialized(); 31if (!ServiceHostingEnvironment.AspNetCompatibilityEnabled)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (8)
82string serviceNamespace = String.Format(CultureInfo.InvariantCulture, "/{0}{1}", ServiceHostingEnvironment.SiteName, VirtualPathUtility.GetDirectory(ServiceHostingEnvironment.FullVirtualPath)); 125XName.Get(XmlConvert.EncodeLocalName(VirtualPathUtility.GetFileName(ServiceHostingEnvironment.FullVirtualPath)), 126String.Format(CultureInfo.InvariantCulture, "/{0}{1}", ServiceHostingEnvironment.SiteName, VirtualPathUtility.GetDirectory(ServiceHostingEnvironment.FullVirtualPath)))); 320if (ServiceHostingEnvironment.IsHosted && !ServiceHostingEnvironment.IsConfigurationBased) 324ICompiledExpressionRoot expressionRoot = XamlBuildProviderExtension.GetExpressionRoot(supportedVersionXamlxfilePath, service, ServiceHostingEnvironment.FullVirtualPath);
System\ServiceModel\Channels\MsmqHostedTransportManager.cs (3)
124string relativeServiceFile = ServiceHostingEnvironment.NormalizeVirtualPath(processedVirtualPath); 192return ((ServiceHostingEnvironment.IsConfigurationBasedService(serviceFile) 208ServiceHostingEnvironment.EnsureServiceAvailable(processedVirtualPath);
System\ServiceModel\ServiceHostingEnvironment.cs (16)
325if (ServiceHostingEnvironment.serviceActivationElementPath == null) 327ServiceHostingEnvironment.serviceActivationElementPath = string.Format(CultureInfo.CurrentCulture, "{0}/{1}", 330return ServiceHostingEnvironment.serviceActivationElementPath; 338if (ServiceHostingEnvironment.siteName == null) 340ServiceHostingEnvironment.siteName = HostingEnvironment.SiteName; 342return ServiceHostingEnvironment.siteName; 350if (ServiceHostingEnvironment.applicationVirtualPath == null) 352ServiceHostingEnvironment.applicationVirtualPath = HostingEnvironment.ApplicationVirtualPath; 354return ServiceHostingEnvironment.applicationVirtualPath; 561ServiceHostingEnvironment.GetServiceType(extension) != ServiceType.Unknown) 938string servicePath = normalizedVirtualPath.Replace("~", ServiceHostingEnvironment.ApplicationVirtualPath + "|"); 939string hostReference = string.Format(CultureInfo.InvariantCulture, "{0}{1}|{2}", ServiceHostingEnvironment.SiteName, servicePath, host.Description.Name); 1267Uri[] prefixFilters = ServiceHostingEnvironment.PrefixFilters; 1386service.Extensions.Add(new VirtualPathExtension(normalizedVirtualPath, ServiceHostingEnvironment.ApplicationVirtualPath, ServiceHostingEnvironment.SiteName)); 1511if (ServiceHostingEnvironment.requestCount != 0)