Partilhar via


CloudAdapter.CreateWebSocketConnection(WebSocket, ILogger) Método

Definição

Cria um StreamingConnection que utiliza 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

Parâmetros

socket
WebSocket

WebSocket instância em que os fluxos são transportados entre o cliente e o servidor.

logger
ILogger

Implementação do logger para informações de rastreio e depuração.

Devoluções

StreamingConnection que utiliza socket Web.

Aplica-se a