IMiddleware.InvokeAsync(HttpContext, RequestDelegate) Method

Definition

Request handling method.

public:
 System::Threading::Tasks::Task ^ InvokeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Http::RequestDelegate ^ next);
public System.Threading.Tasks.Task InvokeAsync (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.RequestDelegate next);
abstract member InvokeAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Http.RequestDelegate -> System.Threading.Tasks.Task
Public Function InvokeAsync (context As HttpContext, next As RequestDelegate) As Task

Parameters

context
HttpContext

The HttpContext for the current request.

next
RequestDelegate

The delegate representing the remaining middleware in the request pipeline.

Returns

A Task that represents the execution of this middleware.

Applies to