语言

WebSocketStreamingConnection 类

定义

WebSocket传输的默认实现 StreamingConnection 。

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

构造函数

名称 说明
WebSocketStreamingConnection(WebSocket, ILogger)

初始化 WebSocketStreamingConnection 类的新实例。

属性

名称 说明
IsConnected

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

(继承自 StreamingConnection)
Logger

它能获得 ILogger 流媒体连接的实例。

(继承自 StreamingConnection)

方法

名称 说明
Dispose()

WebSocket传输的默认实现 StreamingConnection 。

(继承自 StreamingConnection)
Dispose(Boolean)

处置底层 StreamingConnection资产的管理和非管理资源。

(继承自 StreamingConnection)
ListenAsync(RequestHandler, CancellationToken)

打开并 StreamingConnection 监听收到的请求,这些请求会被汇编并发送到提供的 RequestHandler。

(继承自 StreamingConnection)
SendStreamingRequestAsync(StreamingRequest, CancellationToken)

通过连接发送流式处理请求。

(继承自 StreamingConnection)

适用于