Table of Contents

Class ConnectionStatusBehavior

Namespace
Microsoft.ServiceBus
Assembly
Microsoft.ServiceBus.dll

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

public class ConnectionStatusBehavior : IEndpointBehavior, IConnectionStatus
Inheritance
ConnectionStatusBehavior
Implements
IEndpointBehavior
Inherited Members

Constructors

ConnectionStatusBehavior()

Initializes a new instance of the ConnectionStatusBehavior class.

public ConnectionStatusBehavior()

Properties

IsOnline

Gets a value that determines if the connection is online.

public bool IsOnline { get; }

Property Value

bool

true if the connection is online; otherwise, false.

LastError

Gets the last error.

public Exception LastError { get; }

Property Value

Exception

Returns a Exception that contains the last error.

Methods

Retry()

Retries the connection.

public void Retry()

Events

Connecting

Occurs when the connection is connecting.

public event EventHandler Connecting

Event Type

EventHandler

Offline

Occurs when the connection is offline.

public event EventHandler Offline

Event Type

EventHandler

Online

Occurs when the connection is online.

public event EventHandler Online

Event Type

EventHandler