Share via


DefaultFilesMiddleware Class

 

This examines a directory path and determines if there is a default file present. If so the file name is appended to the path and execution continues. Note we don't just serve the file because it may require interpretation.

Namespace:   Microsoft.Owin.StaticFiles
Assembly:  Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Owin.StaticFiles.DefaultFilesMiddleware

Syntax

public class DefaultFilesMiddleware
public ref class DefaultFilesMiddleware 
type DefaultFilesMiddleware = class end
Public Class DefaultFilesMiddleware

Constructors

Name Description
System_CAPS_pubmethod DefaultFilesMiddleware(Func<IDictionary<String, Object>, Task>, DefaultFilesOptions)

Creates a new instance of the DefaultFilesMiddleware.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Invoke(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.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin.StaticFiles Namespace

Return to top