Condividi tramite


WebSocketManager.AcceptWebSocketAsync Metodo

Definizione

Overload

AcceptWebSocketAsync()

Esegue la transizione della richiesta a una connessione WebSocket.

AcceptWebSocketAsync(WebSocketAcceptContext)
AcceptWebSocketAsync(String)

Esegue la transizione della richiesta a una connessione WebSocket usando il protocollo secondario specificato.

AcceptWebSocketAsync()

Origine:
WebSocketManager.cs
Origine:
WebSocketManager.cs
Origine:
WebSocketManager.cs

Esegue la transizione della richiesta a una connessione 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)

Restituisce

Attività che rappresenta il completamento della transizione.

Si applica a

AcceptWebSocketAsync(WebSocketAcceptContext)

Origine:
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)

Parametri

acceptContext
WebSocketAcceptContext

Restituisce

Si applica a

AcceptWebSocketAsync(String)

Origine:
WebSocketManager.cs
Origine:
WebSocketManager.cs
Origine:
WebSocketManager.cs

Esegue la transizione della richiesta a una connessione WebSocket usando il protocollo secondario specificato.

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)

Parametri

subProtocol
String

Protocollo secondario da usare.

Restituisce

Attività che rappresenta il completamento della transizione.

Si applica a