Dela via


WebSocketMiddleware.Invoke(HttpContext) Method

Definition

Processes a request to determine if it is a WebSocket request, and if so, sets the IHttpWebSocketFeature on the Features.

public:
 System::Threading::Tasks::Task ^ Invoke(Microsoft::AspNetCore::Http::HttpContext ^ context);
public System.Threading.Tasks.Task Invoke (Microsoft.AspNetCore.Http.HttpContext context);
member this.Invoke : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
Public Function Invoke (context As HttpContext) As Task

Parameters

context
HttpContext

The HttpContext representing the request.

Returns

The Task that represents the completion of the middleware pipeline.

Applies to