StaticFileMiddleware.Invoke(HttpContext) 方法

定义

处理某个请求以确定它是否与已知的文件匹配,如果匹配,则提供该文件。

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

参数

context
HttpContext

返回

适用于