CloudAdapter.CreateWebSocketConnection(WebSocket, ILogger) Méthode
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.
Crée un StreamingConnection qui utilise des sockets web.
protected virtual Microsoft.Bot.Connector.Streaming.Application.StreamingConnection CreateWebSocketConnection(System.Net.WebSockets.WebSocket socket, Microsoft.Extensions.Logging.ILogger logger);
abstract member CreateWebSocketConnection : System.Net.WebSockets.WebSocket * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Streaming.Application.StreamingConnection
override this.CreateWebSocketConnection : System.Net.WebSockets.WebSocket * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Streaming.Application.StreamingConnection
Protected Overridable Function CreateWebSocketConnection (socket As WebSocket, logger As ILogger) As StreamingConnection
Paramètres
- socket
- WebSocket
WebSocket instance sur laquelle les flux sont transportés entre le client et le serveur.
- logger
- ILogger
Implémentation du logger pour le traçage et le débogage des informations.
Retours
StreamingConnection Ça utilise Web Socket.