C# Class Simplify.Web.Core.StaticFiles.StaticFileResponse

Provides static file response
Inheritance: IStaticFileResponse
Afficher le fichier Open project: i4004/Simplify.Web

Méthodes publiques

Méthode Description
SendNew ( byte data, System.DateTime lastModifiedTime, string fileName ) : System.Threading.Tasks.Task

Sends the fresh static file.

SendNotModified ( System.DateTime lastModifiedTime, string fileName ) : System.Threading.Tasks.Task

Sends the not modified static file response.

StaticFileResponse ( IOwinResponse response, IResponseWriter responseWriter ) : System

Initializes a new instance of the StaticFileResponse class.

Private Methods

Méthode Description
SetMimeType ( string fileName ) : void

Sets the MIME type of response.

SetModificationHeaders ( System.DateTime lastModifiedTime ) : void

Method Details

SendNew() public méthode

Sends the fresh static file.
public SendNew ( byte data, System.DateTime lastModifiedTime, string fileName ) : System.Threading.Tasks.Task
data byte The data.
lastModifiedTime System.DateTime The last modified time.
fileName string Name of the file.
Résultat System.Threading.Tasks.Task

SendNotModified() public méthode

Sends the not modified static file response.
public SendNotModified ( System.DateTime lastModifiedTime, string fileName ) : System.Threading.Tasks.Task
lastModifiedTime System.DateTime The last modified time.
fileName string Name of the file.
Résultat System.Threading.Tasks.Task

StaticFileResponse() public méthode

Initializes a new instance of the StaticFileResponse class.
public StaticFileResponse ( IOwinResponse response, IResponseWriter responseWriter ) : System
response IOwinResponse The response.
responseWriter IResponseWriter The response writer.
Résultat System