共用方式為


IMiddleware.InvokeAsync(HttpContext, RequestDelegate) 方法

定義

要求處理方法。

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

參數

context
HttpContext

目前要求的 HttpContext

next
RequestDelegate

代表要求管線中其餘中介軟體的委派。

傳回

Task 表示這個中介軟體的執行。

適用於