Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConnectivitySettings Class

Holds the connectivity settings effective for all Windows Azure Service Bus-based endpoints that are active in the current application domain.


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

public class ConnectivitySettings

The ConnectivitySettings type exposes the following members.

Public methodConnectivitySettingsInitializes a new instance of the ConnectivitySettings class.

Protected propertyIsReadOnlyInfrastructure. Gets a value that determines if the connectivity settings are read-only.
Public propertyModeGets or sets the connectivity mode for the current application domain.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Protected fieldconnectivityModeContains the ConnectivityMode for the current instance.

Windows Azure Service Bus supports only Full Trust code access security.

The reason for these setting being shared is that the connectivity path to the Windows Azure Service Bus fabric is commonly identical across all endpoints in the same process—that is, the process being located on a machine residing in a tightly managed corporate networking environment that will only permit outbound HTTP traffic without exceptions for the TCP ports required by the other bindings.

By default, all service endpoints listening for messages using one of these two bindings will connect up to the Windows Azure Service Bus fabric using outbound TCP port 828 (for SSL-protected connections) or outbound TCP port 808.

You set the connectivity mode at the AppDomain-level through ServiceBusEnvironment. ServiceBusEnvironment provides a SystemConnectivity property where you can specify the system connectivity. You will usually set the Windows Azure Service Bus environment settings at the beginning of your application, if you need to change the default behavior for your application.

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