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