C# Class BlueCollar.Dashboard.StaticFileHandler

Basic implementation of IDashboardHandler for embedded static files.
Inheritance: DashboardHandlerBase
Show file Open project: ChadBurggraf/blue-collar

Public Methods

Method Description
StaticFileHandler ( IRepositoryFactory repositoryFactory ) : System

Initializes a new instance of the StaticFileHandler class.

Protected Methods

Method 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 method

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.
return StaticFile

PerformRequest() protected method

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.
return byte[]

PerformRequest() protected method

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.
return byte[]

StaticFileHandler() public method

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