HttpContextWrapper.AcceptWebSocketRequest Methode

Definitie

Accepteert een AspNetWebSocket aanvraag.

Overloads

Name Description
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Accepteert een AspNetWebSocket aanvraag met behulp van de opgegeven gebruikersfunctie.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Accepteert een AspNetWebSocket aanvraag met behulp van de opgegeven gebruikersfunctie en het optiesobject.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Accepteert een AspNetWebSocket aanvraag met behulp van de opgegeven gebruikersfunctie.

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

Parameters

userFunc
Func<AspNetWebSocketContext,Task>

De gebruikersfunctie.

Uitzonderingen

De userFunc parameter is null.

De aanvraag is geen AspNetWebSocket aanvraag.

Van toepassing op

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Accepteert een AspNetWebSocket aanvraag met behulp van de opgegeven gebruikersfunctie en het optiesobject.

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)

Parameters

userFunc
Func<AspNetWebSocketContext,Task>

De gebruikersfunctie.

options
AspNetWebSocketOptions

Het optiesobject.

Uitzonderingen

De userFunc parameter is null.

De aanvraag is geen AspNetWebSocket aanvraag.

Van toepassing op