ConnectionStatusBehavior ConnectionStatusBehavior Class

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

Syntax

Declaration

public class ConnectionStatusBehavior : IEndpointBehavior, IConnectionStatusPublic Class ConnectionStatusBehavior
    Implements IEndpointBehavior, IConnectionStatus

Inheritance Hierarchy

  • ConnectionStatusBehavior
    ConnectionStatusBehavior

Constructors summary

Initializes a new instance of the ConnectionStatusBehavior class.

Properties summary

Gets a value that determines if the connection is online.

Gets the last error.

Methods summary

Retries the connection.

Events summary

Explicit Interface Implementations summary

Constructors

  • ConnectionStatusBehavior()
    ConnectionStatusBehavior()

    Initializes a new instance of the ConnectionStatusBehavior class.

    public ConnectionStatusBehavior()Public Sub New

Properties

  • IsOnline
    IsOnline

    Gets a value that determines if the connection is online.

    public bool IsOnline { get; }Public ReadOnly Property IsOnline As Boolean

    Property Value

  • LastError
    LastError

    Gets the last error.

    public Exception LastError { get; }Public ReadOnly Property LastError As Exception

    Property Value

Methods

  • Retry()
    Retry()

    Retries the connection.

    public void Retry()Public Sub Retry

Events

  • Connecting
    Connecting
    public event EventHandler ConnectingPublic Event Connecting As EventHandler
  • Offline
    Offline
    public event EventHandler OfflinePublic Event Offline As EventHandler
  • Online
    Online
    public event EventHandler OnlinePublic Event Online As EventHandler

Explicit Interface Implementations

  • IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)
    System.ServiceModel.Description.IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)
    void IEndpointBehavior.AddBindingParameters(ServiceEndpoint serviceEndpoint, BindingParameterCollection bindingParameters)Sub System.ServiceModel.Description.IEndpointBehavior.AddBindingParameters(serviceEndpoint As ServiceEndpoint, bindingParameters As BindingParameterCollection) Implements IEndpointBehavior.AddBindingParameters

    Parameters

  • IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)
    System.ServiceModel.Description.IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)
    void IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint serviceEndpoint, ClientRuntime behavior)Sub System.ServiceModel.Description.IEndpointBehavior.ApplyClientBehavior(serviceEndpoint As ServiceEndpoint, behavior As ClientRuntime) Implements IEndpointBehavior.ApplyClientBehavior

    Parameters

  • IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)
    System.ServiceModel.Description.IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)
    void IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint serviceEndpoint, EndpointDispatcher endpointDispatcher)Sub System.ServiceModel.Description.IEndpointBehavior.ApplyDispatchBehavior(serviceEndpoint As ServiceEndpoint, endpointDispatcher As EndpointDispatcher) Implements IEndpointBehavior.ApplyDispatchBehavior

    Parameters

  • IEndpointBehavior.Validate(ServiceEndpoint)
    System.ServiceModel.Description.IEndpointBehavior.Validate(ServiceEndpoint)
    void IEndpointBehavior.Validate(ServiceEndpoint serviceEndpoint)Sub System.ServiceModel.Description.IEndpointBehavior.Validate(serviceEndpoint As ServiceEndpoint) Implements IEndpointBehavior.Validate

    Parameters

Details

Namespace

Microsoft.ServiceBus

Assembly

Microsoft.ServiceBus.dll