CloudAdapter.CreateWebSocketConnection(WebSocket, ILogger) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 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
參數
- logger
- ILogger
用於追蹤與除錯資訊的記錄器實作。
傳回
StreamingConnection 那是用 Web Socket 的。