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 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
Events
Connecting
Occurs when the connection is being established.
event EventHandler Connecting
Event Type
Offline
Occurs when the connection goes offline.
event EventHandler Offline
Event Type
Online
Occurs when the connection comes online.
event EventHandler Online