LegacyStreamingConnection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use WebSocketStreamingConnection
instead.
The StreamingConnection to be used by legacy bots.
[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
- Inheritance
- Attributes
Constructors
LegacyStreamingConnection(String, ILogger, DisconnectedEventHandler) |
Initializes a new instance of the LegacyStreamingConnection class that uses named pipes. |
LegacyStreamingConnection(WebSocket, ILogger, DisconnectedEventHandler) |
Initializes a new instance of the LegacyStreamingConnection class that uses web sockets. |
Properties
IsConnected |
Gets a value indicating whether this is currently connected. (Inherited from StreamingConnection) |
Logger |
Gets the ILogger instance for the streaming connection. (Inherited from StreamingConnection) |
Methods
Dispose() | (Inherited from StreamingConnection) |
Dispose(Boolean) |
Disposes managed and unmanaged resources of the underlying StreamingConnection. |
ListenAsync(RequestHandler, CancellationToken) |
Opens the StreamingConnection and listens for incoming requests, which will be assembled and sent to the provided RequestHandler. |
SendStreamingRequestAsync(StreamingRequest, CancellationToken) |
Sends a streaming request through the connection. |