HttpContextWrapper.AcceptWebSocketRequest Methode

Definition

Akzeptiert eine AspNetWebSocket Anforderung.

Überlädt

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Akzeptiert eine AspNetWebSocket Anforderung unter Verwendung der angegebenen Benutzerfunktion.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Akzeptiert eine AspNetWebSocket-Anforderung mit dem angegebenen Benutzerfunktions- und Options-Objekt.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Akzeptiert eine AspNetWebSocket Anforderung unter Verwendung der angegebenen Benutzerfunktion.

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

Parameter

userFunc
Func<AspNetWebSocketContext,Task>

Die Benutzerfunktion.

Ausnahmen

Der userFunc-Parameter ist null.

Die Anforderung ist keine AspNetWebSocket-Anforderung.

Gilt für:

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Akzeptiert eine AspNetWebSocket-Anforderung mit dem angegebenen Benutzerfunktions- und Options-Objekt.

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)

Parameter

userFunc
Func<AspNetWebSocketContext,Task>

Die Benutzerfunktion.

options
AspNetWebSocketOptions

Das Options-Objekt.

Ausnahmen

Der userFunc-Parameter ist null.

Die Anforderung ist keine AspNetWebSocket-Anforderung.

Gilt für: