IMiddleware.InvokeAsync(HttpContext, RequestDelegate) Method
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.
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.