public void ProcessRequest(HttpContext context)
{
if (context == null)
throw new ArgumentNullException("context");
context.Response.ContentType = "text/html";
PageInformation pageInformation;
if (PageIsDynamic(HttpContext.Current.Request.Url, out pageInformation))
{
context.Response.Write(GenerateDefaultPage(pageInformation));
}
else
{
context.Response.Write(_mainPage.Value);
}
}