Compartir a través de


WebSocketManager.AcceptWebSocketAsync Método

Definición

Sobrecargas

AcceptWebSocketAsync()

Realiza la transición de la solicitud a una conexión de WebSocket.

AcceptWebSocketAsync(WebSocketAcceptContext)
AcceptWebSocketAsync(String)

Realiza la transición de la solicitud a una conexión de WebSocket mediante el subprotocolo especificado.

AcceptWebSocketAsync()

Source:
WebSocketManager.cs
Source:
WebSocketManager.cs
Source:
WebSocketManager.cs

Realiza la transición de la solicitud a una conexión de WebSocket.

public:
 virtual System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync();
public virtual System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync ();
abstract member AcceptWebSocketAsync : unit -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
override this.AcceptWebSocketAsync : unit -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
Public Overridable Function AcceptWebSocketAsync () As Task(Of WebSocket)

Devoluciones

Tarea que representa la finalización de la transición.

Se aplica a

AcceptWebSocketAsync(WebSocketAcceptContext)

Source:
WebSocketManager.cs
public virtual System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (Microsoft.AspNetCore.Http.WebSocketAcceptContext acceptContext);
abstract member AcceptWebSocketAsync : Microsoft.AspNetCore.Http.WebSocketAcceptContext -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
override this.AcceptWebSocketAsync : Microsoft.AspNetCore.Http.WebSocketAcceptContext -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
Public Overridable Function AcceptWebSocketAsync (acceptContext As WebSocketAcceptContext) As Task(Of WebSocket)

Parámetros

acceptContext
WebSocketAcceptContext

Devoluciones

Se aplica a

AcceptWebSocketAsync(String)

Source:
WebSocketManager.cs
Source:
WebSocketManager.cs
Source:
WebSocketManager.cs

Realiza la transición de la solicitud a una conexión de WebSocket mediante el subprotocolo especificado.

public:
 abstract System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync(System::String ^ subProtocol);
public abstract System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (string subProtocol);
public abstract System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (string? subProtocol);
abstract member AcceptWebSocketAsync : string -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
Public MustOverride Function AcceptWebSocketAsync (subProtocol As String) As Task(Of WebSocket)

Parámetros

subProtocol
String

Subprotocolo que se va a usar.

Devoluciones

Tarea que representa la finalización de la transición.

Se aplica a