public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData)
{
string path = context.Request.PhysicalPath;
if (!File.Exists(path))
{
throw new HttpException(404, "The requested file cannot be found.");
}
SvgAsyncRenderState reqState = new SvgAsyncRenderState(context, cb, extraData);
SvgAsyncRender asyncRender = new SvgAsyncRender(reqState);
ThreadStart ts = new ThreadStart(asyncRender.RenderSvg);
t = new Thread(ts);
t.Start();
return reqState;
}