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

Definición

Acepta una solicitud AspNetWebSocket.Accepts an AspNetWebSocket request.

Sobrecargas

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

Acepta una solicitud de AspNetWebSocket mediante la función especificada del usuario.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)

Acepta una solicitud de AspNetWebSocket mediante la función de usuario y el objeto de opciones especificados.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>)

Acepta una solicitud de AspNetWebSocket mediante la función especificada del usuario.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))

Parámetros

userFunc
Func<AspNetWebSocketContext,Task>

Función del usuario.The user function.

Excepciones

El parámetro userFunc es null.The userFunc parameter is null.

Comentarios

Llamar a este método equivale a llamar a AcceptWebSocketRequest la sobrecarga del método null y pasar options el parámetro.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)

Acepta una solicitud de AspNetWebSocket mediante la función de usuario y el objeto de opciones especificados.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)

Parámetros

userFunc
Func<AspNetWebSocketContext,Task>

Función del usuario.The user function.

Excepciones

El parámetro userFunc es null.The userFunc parameter is null.

Se aplica a