HttpContext.AcceptWebSocketRequest HttpContext.AcceptWebSocketRequest HttpContext.AcceptWebSocketRequest HttpContext.AcceptWebSocketRequest Method

Définition

Accepte une demande AspNetWebSocket.Accepts an AspNetWebSocket request.

Surcharges

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Accepte une demande de AspNetWebSocket à l'aide de la fonction utilisateur spécifiée.Accepts an AspNetWebSocket request using the specified user function.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Accepte une demande de AspNetWebSocket à l'aide de la fonction utilisateur et de l'objet d'options spécifiés.Accepts an AspNetWebSocket request using the specified user function and options object.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Accepte une demande de AspNetWebSocket à l'aide de la fonction utilisateur spécifiée.Accepts an AspNetWebSocket request using the specified user function.

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

Paramètres

userFunc
Func<AspNetWebSocketContext,Task>

Fonction d'utilisateur.The user function.

Exceptions

Le paramètre userFunc a la valeur null.The userFunc parameter is null.

Remarques

L’appel de cette méthode équivaut à appeler AcceptWebSocketRequest la surcharge de méthode null et à options passer le paramètre.Calling this method is equivalent to calling the AcceptWebSocketRequest method overload and passing null for the options parameter.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Accepte une demande de AspNetWebSocket à l'aide de la fonction utilisateur et de l'objet d'options spécifiés.Accepts an AspNetWebSocket request using the specified user function and options object.

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

Paramètres

userFunc
Func<AspNetWebSocketContext,Task>

Fonction d'utilisateur.The user function.

Exceptions

Le paramètre userFunc a la valeur null.The userFunc parameter is null.

S’applique à