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

ConnectionStatusBehavior Class

An endpoint behavior that provides access to the connection status of service listening on the Windows Azure Service Bus.


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

public ref class ConnectionStatusBehavior : IEndpointBehavior, 

The ConnectionStatusBehavior type exposes the following members.

Public methodConnectionStatusBehaviorInitializes a new instance of the ConnectionStatusBehavior class.

Public propertyIsOnlineGets a value that determines if the connection is online.
Public propertyLastErrorGets the last error.

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 methodRetryRetries the connection.
Public methodToString (Inherited from Object.)

Public eventConnectingOccurs when the connection is connecting.
Public eventOfflineOccurs when the connection is offline.
Public eventOnlineOccurs when the connection is online.

Explicit interface implemetationPrivate methodIEndpointBehavior::AddBindingParametersAdds the specified binding parameters to the endpoint.
Explicit interface implemetationPrivate methodIEndpointBehavior::ApplyClientBehaviorApplies the specified client behaviors to the specified endpoint.
Explicit interface implemetationPrivate methodIEndpointBehavior::ApplyDispatchBehaviorApplies the specified dispatch behavior to the service endpoint.
Explicit interface implemetationPrivate methodIEndpointBehavior::ValidateValidates the specified endpoint.

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

ConnectionStatusBehavior is a behavior you can apply to an endpoint that allows your program to receive events describing the status of the connection to the Windows Azure Service Bus. Services may be online or offline depending on the current network conditions. If a service loses connectivity to the Windows Azure Service Bus due to temporary network issues or a power event the service host and channels will remain open and will frequently attempt to reestablish the Windows Azure Service Bus connection. For example, this could be used as part of a user notification, similar in function to the network status dialog used in many Windows-based applications. For more information on setting endpoint behavior in an Windows Azure Service Bus application, see Choosing Authentication for an AppFabric Service Bus Application.


You can use ConnectionStatusBehavior with all relay listener bindings.

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