语言

WebSocketClient 类

定义

Web socket客户端。

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>, CancellationToken)

建立客户端连接,传递额外的头部和取消令牌。

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

建立连接,传递额外的报头。

(继承自 StreamingTransportClient)
Disconnect()

断开该客户端的方法。

(继承自 StreamingTransportClient)
DisconnectAsync()

断线。

(继承自 StreamingTransportClient)
Dispose()

Web socket客户端。

(继承自 StreamingTransportClient)
Dispose(Boolean)

处理 StreamingTransportClient。

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

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

(继承自 StreamingTransportClient)

活动

名称 说明
Disconnected

用于提示底层连接断开的事件。

(继承自 StreamingTransportClient)

适用于