IConnectionStatus IConnectionStatus Interface

Describes the current status of a one-way connection.

Syntax

Declaration

public interface IConnectionStatusPublic Interface IConnectionStatus

Properties summary

Gets a value that determines whether the connection is online.

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

Events summary

Occurs when the connection is being established.

Occurs when the connection goes offline.

Occurs when the connection comes online.

Properties

  • IsOnline
    IsOnline

    Gets a value that determines whether the connection is online.

    bool IsOnline { get; }ReadOnly Property IsOnline As Boolean

    Property Value

    • 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
    LastError

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

    Exception LastError { get; }ReadOnly Property LastError As Exception

    Property Value

Events

  • Connecting
    Connecting

    Occurs when the connection is being established.

    event EventHandler ConnectingEvent Connecting As EventHandler
  • Offline
    Offline

    Occurs when the connection goes offline.

    event EventHandler OfflineEvent Offline As EventHandler
  • Online
    Online

    Occurs when the connection comes online.

    event EventHandler OnlineEvent Online As EventHandler

Details

Namespace

Microsoft.ServiceBus

Assembly

Microsoft.ServiceBus.dll