HttpContextBase::AcceptWebSocketRequest Method (Func<AspNetWebSocketContext^, Task^>^, AspNetWebSocketOptions^)
.NET Framework (current version)
When implemented in a derived class, accepts an AspNetWebSocket request using the specified user function and options object.
Assembly: System.Web (in System.Web.dll)
public: virtual void AcceptWebSocketRequest( Func<AspNetWebSocketContext^, Task^>^ userFunc, AspNetWebSocketOptions^ options )
Parameters
- userFunc
-
Type:
System::Func<AspNetWebSocketContext^, Task^>^
The user function.
- options
-
Type:
System.Web.WebSockets::AspNetWebSocketOptions^
The options object.
.NET Framework
Available since 4.5
Available since 4.5
Show: