Table of Contents

Interface IConnectionStatus

Namespace
Microsoft.ServiceBus
Assembly
Microsoft.ServiceBus.dll

Describes the current status of a one-way connection.

public interface IConnectionStatus

Properties

IsOnline

Gets a value that determines whether the connection is online.

bool IsOnline { get; }

Property Value

bool

true if the connection is alive and online; false if there is no connectivity towards the Windows Azure Service Bus from the current network location.

LastError

Retrieves the last error encountered when trying to reestablish the connection from the offline state.

Exception LastError { get; }

Property Value

Exception

Returns a Exception that contains the last error.

Events

Connecting

Occurs when the connection is being established.

event EventHandler Connecting

Event Type

EventHandler

Offline

Occurs when the connection becomes offline.

event EventHandler Offline

Event Type

EventHandler

Online

Occurs when the connection becomes online.

event EventHandler Online

Event Type

EventHandler