Condividi tramite


IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext) Metodo

Definizione

Tenta di aggiornare la richiesta a un oggetto WebSocket. Controlla IsWebSocketRequest prima di richiamare questo.

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)

Parametri

Restituisce

Oggetto WebSocket.

Si applica a