LegacyStreamingConnection Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| LegacyStreamingConnection(WebSocket, ILogger, DisconnectedEventHandler) |
Initialise une nouvelle instance de la LegacyStreamingConnection classe qui utilise des web sockets. |
| LegacyStreamingConnection(String, ILogger, DisconnectedEventHandler) |
Initialise une nouvelle instance de la LegacyStreamingConnection classe qui utilise des pipes nommés. |
LegacyStreamingConnection(WebSocket, ILogger, DisconnectedEventHandler)
Initialise une nouvelle instance de la LegacyStreamingConnection classe qui utilise des 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)
Paramètres
- logger
- ILogger
Implémentation du logger pour le traçage et le débogage des informations.
- onServerDisconnect
- DisconnectedEventHandler
Du code de gestion supplémentaire à exécuter lorsque le serveur de transport est déconnecté.
S’applique à
LegacyStreamingConnection(String, ILogger, DisconnectedEventHandler)
Initialise une nouvelle instance de la LegacyStreamingConnection classe qui utilise des pipes nommés.
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)
Paramètres
- pipeName
- String
Le nom de la pipe nommée.
- logger
- ILogger
Implémentation du logger pour le traçage et le débogage des informations.
- onServerDisconnect
- DisconnectedEventHandler
Du code de gestion supplémentaire à exécuter lorsque le serveur de transport est déconnecté.