C# Class BlueCollar.Dashboard.StaticFileHandler

Basic implementation of IDashboardHandler for embedded static files.
Inheritance: DashboardHandlerBase
Afficher le fichier Open project: ChadBurggraf/blue-collar

Méthodes publiques

Méthode Description
StaticFileHandler ( IRepositoryFactory repositoryFactory ) : System

Initializes a new instance of the StaticFileHandler class.

Méthodes protégées

Méthode Description
CreateFile ( System.Web.HttpContextBase context ) : StaticFile

Creates a StaticFile instance corresponding with the current request.

PerformRequest ( System.Web.HttpContextBase context ) : byte[]

Performs the concrete request operation and returns the output as a byte array.

PerformRequest ( System.Web.HttpContextBase context, StaticFile file ) : byte[]

Performs the concrete request operation and returns the output as a byte array.

Method Details

CreateFile() protected méthode

Creates a StaticFile instance corresponding with the current request.
protected CreateFile ( System.Web.HttpContextBase context ) : StaticFile
context System.Web.HttpContextBase The HTTP context to create the file for.
Résultat StaticFile

PerformRequest() protected méthode

Performs the concrete request operation and returns the output as a byte array.
protected PerformRequest ( System.Web.HttpContextBase context ) : byte[]
context System.Web.HttpContextBase The HTTP context to perform the request for.
Résultat byte[]

PerformRequest() protected méthode

Performs the concrete request operation and returns the output as a byte array.
protected PerformRequest ( System.Web.HttpContextBase context, StaticFile file ) : byte[]
context System.Web.HttpContextBase The HTTP context to perform the request for.
file StaticFile The static file to return the contents of.
Résultat byte[]

StaticFileHandler() public méthode

Initializes a new instance of the StaticFileHandler class.
public StaticFileHandler ( IRepositoryFactory repositoryFactory ) : System
repositoryFactory IRepositoryFactory The repository factory to use.
Résultat System