IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext) Método

Definição

Tenta atualizar a solicitação para um WebSocket. Verifique IsWebSocketRequest antes de invocar isso.

public:
 System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptAsync(Microsoft::AspNetCore::Http::WebSocketAcceptContext ^ context);
public System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptAsync (Microsoft.AspNetCore.Http.WebSocketAcceptContext context);
abstract member AcceptAsync : Microsoft.AspNetCore.Http.WebSocketAcceptContext -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
Public Function AcceptAsync (context As WebSocketAcceptContext) As Task(Of WebSocket)

Parâmetros

Retornos

Uma WebSocket.

Aplica-se a