Sdílet prostřednictvím


LegacyStreamingConnection Konstruktory

Definice

Přetížení

LegacyStreamingConnection(WebSocket, ILogger, DisconnectedEventHandler)

Inicializuje novou instanci LegacyStreamingConnection třídy, která používá webové sokety.

LegacyStreamingConnection(String, ILogger, DisconnectedEventHandler)

Inicializuje novou instanci LegacyStreamingConnection třídy, která používá pojmenované kanály.

LegacyStreamingConnection(WebSocket, ILogger, DisconnectedEventHandler)

Inicializuje novou instanci LegacyStreamingConnection třídy, která používá webové sokety.

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)

Parametry

socket
WebSocket

Instance WebSocket , která se má použít pro starší připojení ke streamování.

logger
ILogger

Implementace protokolovacího nástroje pro trasování a ladění informací.

onServerDisconnect
DisconnectedEventHandler

Další kód pro zpracování, který se má spustit, když je transportní server odpojený.

Platí pro

LegacyStreamingConnection(String, ILogger, DisconnectedEventHandler)

Inicializuje novou instanci LegacyStreamingConnection třídy, která používá pojmenované kanály.

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)

Parametry

pipeName
String

Název pojmenovaného kanálu.

logger
ILogger

Implementace protokolovacího nástroje pro trasování a ladění informací.

onServerDisconnect
DisconnectedEventHandler

Další kód pro zpracování, který se má spustit, když je transportní server odpojený.

Platí pro