Jaa


LegacyStreamingConnection Constructors

Definition

Overloads

LegacyStreamingConnection(WebSocket, ILogger, DisconnectedEventHandler)

Initializes a new instance of the LegacyStreamingConnection class that uses web sockets.

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.

public LegacyStreamingConnection (System.Net.WebSockets.WebSocket socket, Microsoft.Extensions.Logging.ILogger logger, Microsoft.Bot.Streaming.Transport.DisconnectedEventHandler onServerDisconnect = default);
new Microsoft.Bot.Connector.Streaming.Application.LegacyStreamingConnection : System.Net.WebSockets.WebSocket * Microsoft.Extensions.Logging.ILogger * Microsoft.Bot.Streaming.Transport.DisconnectedEventHandler -> Microsoft.Bot.Connector.Streaming.Application.LegacyStreamingConnection
Public Sub New (socket As WebSocket, logger As ILogger, Optional onServerDisconnect As DisconnectedEventHandler = Nothing)

Parameters

socket
WebSocket

The WebSocket instance to use for legacy streaming connection.

logger
ILogger

Logger implementation for tracing and debugging information.

onServerDisconnect
DisconnectedEventHandler

Additional handling code to be run when the transport server is disconnected.

Applies to

LegacyStreamingConnection(String, ILogger, DisconnectedEventHandler)

Initializes a new instance of the LegacyStreamingConnection class that uses named pipes.

public LegacyStreamingConnection (string pipeName, Microsoft.Extensions.Logging.ILogger logger, Microsoft.Bot.Streaming.Transport.DisconnectedEventHandler onServerDisconnect = default);
new Microsoft.Bot.Connector.Streaming.Application.LegacyStreamingConnection : string * Microsoft.Extensions.Logging.ILogger * Microsoft.Bot.Streaming.Transport.DisconnectedEventHandler -> Microsoft.Bot.Connector.Streaming.Application.LegacyStreamingConnection
Public Sub New (pipeName As String, logger As ILogger, Optional onServerDisconnect As DisconnectedEventHandler = Nothing)

Parameters

pipeName
String

The name of the named pipe.

logger
ILogger

Logger implementation for tracing and debugging information.

onServerDisconnect
DisconnectedEventHandler

Additional handling code to be run when the transport server is disconnected.

Applies to