SendFileMiddleware Class
This middleware provides an efficient fallback mechanism for sending static files when the server does not natively support such a feature. The caller is responsible for setting all headers in advance. The caller is responsible for performing the correct impersonation to give access to the file.
Namespace: Microsoft.Owin.StaticFiles
Assembly: Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)
Inheritance Hierarchy
System.Object
Microsoft.Owin.StaticFiles.SendFileMiddleware
Syntax
public class SendFileMiddleware
public ref class SendFileMiddleware
type SendFileMiddleware = class end
Public Class SendFileMiddleware
Constructors
Name | Description | |
---|---|---|
![]() |
SendFileMiddleware(Func<IDictionary<String, Object>, Task>) | Creates a new instance of the SendFileMiddleware. |
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
Invoke(IDictionary<String, Object>) | Adds the sendfile.SendAsync Func to the request environment, if not already present. |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
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