語言

CloudAdapter.CreateWebSocketConnection(WebSocket, ILogger) 方法

定義

建立 StreamingConnection 一個使用 Web sockets 的 Config。

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

參數

socket
WebSocket

WebSocket 在用戶端與伺服器間傳輸串流的實例。

logger
ILogger

用於追蹤與除錯資訊的記錄器實作。

傳回

StreamingConnection 那是用 Web Socket 的。

適用於