Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServiceBusEnvironment.SystemConnectivity Property

Gets the singleton ConnectivitySettings instance that holds the connectivity settings for TCP and HTTP-based endpoints.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public static ConnectivitySettings SystemConnectivity { get; }

Property Value

Type: Microsoft.ServiceBus.ConnectivitySettings
Returns a ConnectivitySettings that contains the connectivity settings.

For most scenarios, it is recommended that you keep Mode to Auto. This indicates that your application will attempt to use TCP to connect to the Windows Azure Service Bus, but will use HTTP if unable to do so. In general, this allows your connection to be more efficient. However, if TCP is always unavailable to your application, you can save some time on your connection if you globally set the mode to HTTP.

The following example, pulled from the EchoSample in the SDK, describes how to set the system connectivity through the ServiceBusEnvironment.

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Tcp; 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.