Export (0) Print
Expand All

ServiceBusEnvironment Class

Describes the Service Bus environment.


Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public static class ServiceBusEnvironment

The ServiceBusEnvironment type exposes the following members.

Public propertyStatic memberDefaultIdentityHostNameGets the default host name for the Access Control Service.
Public propertyStatic memberSystemConnectivityGets the singleton ConnectivitySettings instance that holds the connectivity settings for TCP and HTTP-based endpoints.

Public methodStatic memberCreateAccessControlUriCreates a URI string to use with access control for the specified service namespace.
Public methodStatic memberCreateServiceUri(String, String, String)Constructs the Service Bus URI for an application, using the specified scheme, service namespace, and service path.
Public methodStatic memberCreateServiceUri(String, String, String, Boolean)Constructs the Service Bus URI for an application, using the specified scheme, service namespace, service path, and relayed path prefix.

Azure Service Bus supports only Full Trust code access security.

This class provides information about the current host names for Service Bus and Access Control endpoints and to the globally effective ConnectivitySettings for all binding-based endpoints that are active in the current application domain.


Service Bus endpoint URIs must always use the “sb://” protocol; for example sb://contoso.servicebus.windows.net/helloservicebus.

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

Community Additions

© 2015 Microsoft