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 | |
---|---|---|
UseFileServer(IAppBuilder) | Enable all static file middleware (except directory browsing) for the current request path in the current directory. |
|
UseFileServer(IAppBuilder, Boolean) | Enable all static file middleware on for the current request path in the current directory. |
|
UseFileServer(IAppBuilder, FileServerOptions) | Enable all static file middleware with the given options |
|
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
Return to top