HttpContextBase.AcceptWebSocketRequest Method (Func(Of AspNetWebSocketContext, Task))

.NET Framework (current version)
 

When implemented in a derived class, accepts an AspNetWebSocket request using the specified user function.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

Public Overridable Sub AcceptWebSocketRequest (
	userFunc As Func(Of AspNetWebSocketContext, Task)
)

Parameters

userFunc
Type: System.Func(Of AspNetWebSocketContext, Task)

The user function.

.NET Framework
Available since 4.5
Return to top
Show: