ServiceHostingEnvironment Class

 

Provides information about the current hosting environment in which Windows Communication Foundation (WCF) services are running.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel.Activation (in System.ServiceModel.Activation.dll)

System.Object
  System.ServiceModel.ServiceHostingEnvironment

public static class ServiceHostingEnvironment

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAspNetCompatibilityEnabled

Gets a value that indicates whether this service is running in the context of the ASP.NET HTTP application pipeline.

System_CAPS_pubpropertySystem_CAPS_staticMultipleSiteBindingsEnabled

Gets or sets a value that specifies whether multiple site bindings are allowed for the service host.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticEnsureInitialized()

Initializes the service if it has not already been initialized.

System_CAPS_pubmethodSystem_CAPS_staticEnsureServiceAvailable(String)

Ensures that a service is activated at the provided virtual path.

This class exposes AppDomain-wide settings not specifically associated with an individual service. This class can only be applied at the application or machine configuration level.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: