HttpContext.AcceptWebSocketRequest Method (System.Web) (original) (raw)
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)
public:
void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc);public void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc);member this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> -> unitPublic Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task))Parameters
Exceptions
The userFunc parameter is null.
Remarks
Calling this method is equivalent to calling the AcceptWebSocketRequest method overload and passing null for the options parameter.
Applies to
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)
Accepts an AspNetWebSocket request using the specified user function and options object.
public:
void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc, System::Web::WebSockets::AspNetWebSocketOptions ^ options);public void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc, System.Web.WebSockets.AspNetWebSocketOptions options);member this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> * System.Web.WebSockets.AspNetWebSocketOptions -> unitPublic Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task), options As AspNetWebSocketOptions)Parameters
Exceptions
The userFunc parameter is null.