DefaultFilesMiddleware.Invoke Method (IDictionary<String, Object>)
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.
Namespace: Microsoft.Owin.StaticFiles
Assembly: Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)
Syntax
public Task Invoke(
IDictionary<string, object> environment
)
public:
Task^ Invoke(
IDictionary<String^, Object^>^ environment
)
member Invoke :
environment:IDictionary<string, Object> -> Task
Public Function Invoke (
environment As IDictionary(Of String, Object)
) As Task
Parameters
environment
Type: System.Collections.Generic.IDictionary<String, Object>The request environment.
Return Value
Type: System.Threading.Tasks.Task
Returns Task.
See Also
DefaultFilesMiddleware Class
Microsoft.Owin.StaticFiles Namespace
Return to top