FileServerExtensions Class

 

Extension methods that combine all of the static file middleware components: Default files, directory browsing, send file, and static files

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

Inheritance Hierarchy

System.Object
  Owin.FileServerExtensions

Syntax

public static class FileServerExtensions
[ExtensionAttribute]
public ref class FileServerExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type FileServerExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class FileServerExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static UseFileServer(IAppBuilder)

Enable all static file middleware (except directory browsing) for the current request path in the current directory.

System_CAPS_pubmethodSystem_CAPS_static UseFileServer(IAppBuilder, Boolean)

Enable all static file middleware on for the current request path in the current directory.

System_CAPS_pubmethodSystem_CAPS_static UseFileServer(IAppBuilder, FileServerOptions)

Enable all static file middleware with the given options

System_CAPS_pubmethodSystem_CAPS_static UseFileServer(IAppBuilder, String)

Enables all static file middleware (except directory browsing) for the given request path from the directory of the same name

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

Owin Namespace

Return to top