Compartir a través de


IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext) Método

Definición

Intenta actualizar la solicitud a .WebSocket Compruebe IsWebSocketRequest antes de invocar esto.

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

Devoluciones

Un objeto WebSocket.

Se aplica a