C# Class Svg.Web.SvgHandler

A handler to asynchronously render Scalable Vector Graphics files (usually *.svg or *.xml file extensions).

If a crawler requests the SVG file the raw XML will be returned rather than the image to allow crawlers to better read the image.

Adding "?raw=true" to the querystring will alos force the handler to render the raw SVG.

Inheritance: IHttpAsyncHandler
Mostra file Open project: prepare/HTML-Renderer

Public Methods

Method Description
BeginProcessRequest ( HttpContext context, AsyncCallback cb, object extraData ) : IAsyncResult

Initiates an asynchronous call to the HTTP handler.

EndProcessRequest ( IAsyncResult result ) : void

Provides an asynchronous process End method when the process ends.

ProcessRequest ( HttpContext context ) : void

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

Method Details

BeginProcessRequest() public method

Initiates an asynchronous call to the HTTP handler.
public BeginProcessRequest ( HttpContext context, AsyncCallback cb, object extraData ) : IAsyncResult
context System.Web.HttpContext An object that provides references to intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
cb AsyncCallback The to call when the asynchronous method call is complete. If is null, the delegate is not called.
extraData object Any extra data needed to process the request.
return IAsyncResult

EndProcessRequest() public method

Provides an asynchronous process End method when the process ends.
public EndProcessRequest ( IAsyncResult result ) : void
result IAsyncResult An that contains information about the status of the process.
return void

ProcessRequest() public method

Enables processing of HTTP Web requests by a custom HttpHandler that implements the T:System.Web.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.
return void