WebSocketClient 类

定义

Web 套接字客户端。

public class WebSocketClient : Microsoft.Bot.Connector.Streaming.Application.StreamingTransportClient
type WebSocketClient = class
    inherit StreamingTransportClient
Public Class WebSocketClient
Inherits StreamingTransportClient
继承

构造函数

WebSocketClient(WebSocket, String, RequestHandler, Nullable<TimeSpan>, Nullable<TimeSpan>, ILogger)

初始化 WebSocketClient 类的新实例。

属性

IsConnected

获取一个值,该值指示此客户端当前是否已连接。

(继承自 StreamingTransportClient)
Logger

获取 ILogger 流式处理客户端的 实例。

(继承自 StreamingTransportClient)

方法

ConnectAsync()

用于为此客户端建立连接的任务。

(继承自 StreamingTransportClient)
ConnectAsync(IDictionary<String,String>)

建立与附加标头一起传递的连接。

(继承自 StreamingTransportClient)
ConnectAsync(IDictionary<String,String>, CancellationToken)

建立客户端连接,同时传递其他标头和取消令牌。

(继承自 StreamingTransportClient)
Disconnect()

用于断开此客户端连接的方法。

(继承自 StreamingTransportClient)
DisconnectAsync()

断开。

(继承自 StreamingTransportClient)
Dispose()

Web 套接字客户端。

(继承自 StreamingTransportClient)
Dispose(Boolean)

释放 由 StreamingTransportClient使用的对象。

(继承自 StreamingTransportClient)
SendAsync(StreamingRequest, CancellationToken)

用于通过此客户端连接发送数据的任务。

(继承自 StreamingTransportClient)

事件

Disconnected

用于在基础连接断开连接时发出信号的事件。

(继承自 StreamingTransportClient)

适用于