你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ConnectionStatusBehavior 类

定义

一种终结点行为,用于访问侦听Azure 服务总线的服务的连接状态。

public class ConnectionStatusBehavior : Microsoft.ServiceBus.IConnectionStatus, System.ServiceModel.Description.IEndpointBehavior
type ConnectionStatusBehavior = class
    interface IEndpointBehavior
    interface IConnectionStatus
Public Class ConnectionStatusBehavior
Implements IConnectionStatus, IEndpointBehavior
继承
ConnectionStatusBehavior
实现

构造函数

ConnectionStatusBehavior()

初始化 ConnectionStatusBehavior 类的新实例。

属性

IsOnline

获取一个值,该值确定连接是否处于联机状态。

LastError

获取最后一个错误。

方法

Retry()

重试连接。

事件

Connecting

当终结点与中继服务暂时断开连接时以及每次重新连接尝试时发生。

Offline

当终结点停止尝试连接到中继服务时发生。

Online

当终结点成功连接到中继服务时发生。

显式接口实现

IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

在运行时将数据传递到绑定以支持自定义行为。 此实现不执行任何工作。

IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

此实现不执行任何工作。

IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

挂接侦听器运行时连接状态事件。

IEndpointBehavior.Validate(ServiceEndpoint)

此方法不执行任何操作。

适用于