C# Class AssetPackager.ScriptsHandler

Combines scripts into single one and writes it to response.
Inheritance: IHttpHandler
Show file Open project: kpumuk/assetpackager.net

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void

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

Private Methods

Method Description
CombineScripts ( IEnumerable assets ) : object
CreateHttpWebRequest ( string url ) : HttpWebRequest

Initializes a new instance of HttpWebRequest.

FetchScript ( string relativeUrl, StringBuilder buffer ) : void

Retrieves script text by relative URL.

FindFile ( string path ) : string
GetDebugPath ( string releasePath ) : string
ReplaceExtension ( string path ) : string

Method Details

ProcessRequest() public method

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