Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ConnectionStatusBehavior Class
Collapse the table of content
Expand the table of content

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)

System.Object
  Microsoft.ServiceBus.ConnectionStatusBehavior

public class ConnectionStatusBehavior : IEndpointBehavior, IConnectionStatus

NameDescription
System_CAPS_pubmethodConnectionStatusBehavior()

Initializes a new instance of the ConnectionStatusBehavior class.

NameDescription
System_CAPS_pubpropertyIsOnline

Gets a value that determines if the connection is online.

System_CAPS_pubpropertyLastError

Gets the last error.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRetry()

Retries the connection.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventConnecting

Occurs when the connection is connecting.

System_CAPS_pubeventOffline

Occurs when the connection is offline.

System_CAPS_pubeventOnline

Occurs when the connection is online.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

Adds the specified binding parameters to the endpoint.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

Applies the specified client behaviors to the specified endpoint.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

Applies the specified dispatch behavior to the service endpoint.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior.Validate(ServiceEndpoint)

Validates 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 .

System_CAPS_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.

Return to top
Show:
© 2015 Microsoft