C# Class BlueCollar.Dashboard.DashboardHandlerBase

Base IDashboardHandler implementation.
Inheritance: IDashboardHandler
Afficher le fichier Open project: ChadBurggraf/blue-collar

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes of resources used by this instance.

ProcessRequest ( HttpContext context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

ProcessRequest ( System.Web.HttpContextBase context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

Méthodes protégées

Méthode Description
BadRequest ( ) : void

Throws a 400 HttpException.

DashboardHandlerBase ( IRepositoryFactory repositoryFactory ) : System

Initializes a new instance of the DashboardHandlerBase class.

Dispose ( bool disposing ) : void

Disposes of resources used by this instance.

EncodeString ( string value ) : byte[]

Gets the given string value as an array of bytes.

GetCacheKey ( System.Web.HttpContextBase httpContext ) : string

Gets the cache key to use for this instance's response.

NotFound ( ) : void

Throws a 404 HttpException.

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

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

PrepareResponse ( System.Web.HttpContextBase context, HandlerOutput output ) : void

Prepares an HTTP context's response.

ShouldCompressResponse ( ) : bool

Gets a value indicating whether the response should be compressed if the client accepts compression.

Method Details

BadRequest() protected méthode

Throws a 400 HttpException.
protected BadRequest ( ) : void
Résultat void

DashboardHandlerBase() protected méthode

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

Dispose() public méthode

Disposes of resources used by this instance.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Disposes of resources used by this instance.
protected Dispose ( bool disposing ) : void
disposing bool A value indicating whether to dispose of managed resources.
Résultat void

EncodeString() protected static méthode

Gets the given string value as an array of bytes.
protected static EncodeString ( string value ) : byte[]
value string The string value to get.
Résultat byte[]

GetCacheKey() protected méthode

Gets the cache key to use for this instance's response.
protected GetCacheKey ( System.Web.HttpContextBase httpContext ) : string
httpContext System.Web.HttpContextBase The HTTP context to get the cache key for.
Résultat string

NotFound() protected méthode

Throws a 404 HttpException.
protected NotFound ( ) : void
Résultat void

PerformRequest() protected abstract méthode

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

PrepareResponse() protected méthode

Prepares an HTTP context's response.
protected PrepareResponse ( System.Web.HttpContextBase context, HandlerOutput output ) : void
context System.Web.HttpContextBase The HTTP context to prepare.
output HandlerOutput The cached output the response is being prepared for, if applicable.
Résultat void

ProcessRequest() public méthode

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
Résultat void

ProcessRequest() public méthode

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.
public ProcessRequest ( System.Web.HttpContextBase context ) : void
context System.Web.HttpContextBase An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
Résultat void

ShouldCompressResponse() protected méthode

Gets a value indicating whether the response should be compressed if the client accepts compression.
protected ShouldCompressResponse ( ) : bool
Résultat bool