语言

LegacyStreamingConnection 类

定义

注意

Use WebSocketStreamingConnection instead.

它 StreamingConnection 将被传统机器人使用。

[System.Obsolete("Use `WebSocketStreamingConnection` instead.", false)]
public class LegacyStreamingConnection : Microsoft.Bot.Connector.Streaming.Application.StreamingConnection
[<System.Obsolete("Use `WebSocketStreamingConnection` instead.", false)>]
type LegacyStreamingConnection = class
    inherit StreamingConnection
Public Class LegacyStreamingConnection
Inherits StreamingConnection
继承
LegacyStreamingConnection
属性

构造函数

名称 说明
LegacyStreamingConnection(String, ILogger, DisconnectedEventHandler)
已过时.

初始化使用命名管道的类的新实例 LegacyStreamingConnection 。

LegacyStreamingConnection(WebSocket, ILogger, DisconnectedEventHandler)
已过时.

初始化使用网页套接字的新类实例 LegacyStreamingConnection 。

属性

名称 说明
IsConnected
已过时.

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

(继承自 StreamingConnection)
Logger
已过时.

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

(继承自 StreamingConnection)

方法

名称 说明
Dispose()
已过时.

它 StreamingConnection 将被传统机器人使用。

(继承自 StreamingConnection)
Dispose(Boolean)
已过时.

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

ListenAsync(RequestHandler, CancellationToken)
已过时.

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

SendStreamingRequestAsync(StreamingRequest, CancellationToken)
已过时.

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

适用于