HttpContextWrapper.AcceptWebSocketRequest Metodo

Definizione

Accetta una AspNetWebSocket richiesta.

Overload

Nome Descrizione
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Accetta una AspNetWebSocket richiesta usando la funzione utente specificata.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Accetta una AspNetWebSocket richiesta utilizzando la funzione utente e l'oggetto opzioni specificati.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Accetta una AspNetWebSocket richiesta usando la funzione utente specificata.

public:
 override void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc);
public override void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc);
override this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> -> unit
Public Overrides Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task))

Parametri

userFunc
Func<AspNetWebSocketContext,Task>

Funzione utente.

Eccezioni

Il userFunc parametro è null.

La richiesta non è una AspNetWebSocket richiesta.

Si applica a

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Accetta una AspNetWebSocket richiesta utilizzando la funzione utente e l'oggetto opzioni specificati.

public:
 override void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc, System::Web::WebSockets::AspNetWebSocketOptions ^ options);
public override void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc, System.Web.WebSockets.AspNetWebSocketOptions options);
override this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> * System.Web.WebSockets.AspNetWebSocketOptions -> unit
Public Overrides Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task), options As AspNetWebSocketOptions)

Parametri

userFunc
Func<AspNetWebSocketContext,Task>

Funzione utente.

options
AspNetWebSocketOptions

Oggetto options.

Eccezioni

Il userFunc parametro è null.

La richiesta non è una AspNetWebSocket richiesta.

Si applica a