Share via


DefaultFilesMiddleware.Invoke(HttpContext) Method

Definition

This examines the request to see if it matches a configured directory, and if there are any files with the configured default names in that directory. If so this will append the corresponding file name to the request path for a later middleware to handle.

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

Returns

Applies to