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.

System.Object
  Microsoft.ServiceBus.ConnectionStatusBehavior

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

public class ConnectionStatusBehavior : IEndpointBehavior, 
	IConnectionStatus

The ConnectionStatusBehavior type exposes the following members.

  NameDescription
Public methodConnectionStatusBehaviorInitializes a new instance of the ConnectionStatusBehavior class.
Top

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

  NameDescription
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.)
Top

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

  NameDescription
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.
Top

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.

NoteNote

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

ADD
Show:
© 2014 Microsoft