Share via


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
System_CAPS_pubmethod SendFileMiddleware(Func<IDictionary<String, Object>, Task>)

Creates a new instance of the SendFileMiddleware.

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>)

Adds the sendfile.SendAsync Func to the request environment, if not already present.

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