Share via


HttpContextBase.AcceptWebSocketRequest Methode

Definition

Akzeptiert bei der Implementierung in einer abgeleiteten Klasse eine AspNetWebSocket-Anforderung.

Überlädt

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Akzeptiert beim Implementieren in einer abgeleiteten Klasse eine AspNetWebSocket Anforderung mithilfe der angegebenen Benutzer-Funktion.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Akzeptiert beim Implementieren in einer abgeleiteten Klasse eine AspNetWebSocket-Anforderung mit der angegebenen Benutzerfunktion und Optionen-Objekt.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Akzeptiert beim Implementieren in einer abgeleiteten Klasse eine AspNetWebSocket Anforderung mithilfe der angegebenen Benutzer-Funktion.

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

Parameter

userFunc
Func<AspNetWebSocketContext,Task>

Die Benutzerfunktion.

Gilt für:

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Akzeptiert beim Implementieren in einer abgeleiteten Klasse eine AspNetWebSocket-Anforderung mit der angegebenen Benutzerfunktion und Optionen-Objekt.

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

Parameter

userFunc
Func<AspNetWebSocketContext,Task>

Die Benutzerfunktion.

options
AspNetWebSocketOptions

Das Options-Objekt.

Gilt für: