C# Class BlueCollar.Dashboard.DashboardHandlerFactory

Implements IHttpHandlerFactory for the dashboard.
Inheritance: IHttpHandlerFactory
Exibir arquivo Open project: ChadBurggraf/blue-collar

Private Properties

Property Type Description
CombineUrlPaths string
DashboardHandlerFactory System
GetHandler IHttpHandler
GetHandlerRelativeUrl string
ResolveHandlerUrl string
ResolveHandlerUrl string
ResolveHandlerUrl string

Public Methods

Method Description
DashboardHandlerFactory ( ) : System

Initializes a new instance of the DashboardHandlerFactory class.

GetHandler ( HttpContext context, string requestType, string url, string pathTranslated ) : IHttpHandler

Returns an instance of a class that implements the IHttpHandler interface.

ReleaseHandler ( IHttpHandler handler ) : void

Enables a factory to reuse an existing handler instance.

Private Methods

Method Description
CombineUrlPaths ( ) : string

Combines all of the URL path parts given by normalizing their separating '/'.

DashboardHandlerFactory ( string applicationName, DashboardEnabledMode mode, string handlerUrl, IRepositoryFactory repositoryFactory ) : System
GetHandler ( System.Web.HttpContextBase context, string requestType, string url, string pathTranslated ) : IHttpHandler
GetHandlerRelativeUrl ( string handlerPath, string rawUrl ) : string
ResolveHandlerUrl ( string handlerUrl, System.Web.HttpContextBase httpContext ) : string

Resolves the given handler URL.

ResolveHandlerUrl ( string handlerUrl, System.Web.HttpContextBase httpContext, string configPath ) : string

Resolves the given handler URL.

ResolveHandlerUrl ( string handlerUrl, string baseDirectory, string applicationPath, string configPath ) : string

Resolves the given handler URL.

Method Details

DashboardHandlerFactory() public method

Initializes a new instance of the DashboardHandlerFactory class.
public DashboardHandlerFactory ( ) : System
return System

GetHandler() public method

Returns an instance of a class that implements the IHttpHandler interface.
public GetHandler ( HttpContext context, string requestType, string url, string pathTranslated ) : IHttpHandler
context System.Web.HttpContext An instance of the class that provides references to intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
requestType string The HTTP data transfer method (GET or POST) that the client uses.
url string The of the requested resource.
pathTranslated string The to the requested resource.
return IHttpHandler

ReleaseHandler() public method

Enables a factory to reuse an existing handler instance.
public ReleaseHandler ( IHttpHandler handler ) : void
handler IHttpHandler The object to reuse.
return void