using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using System.Web;
using Everest.CmsServices.Web;
namespace Everest.CmsServices.HttpModule{
public class KoobooUrlRoutingModule : UrlRoutingModule
{
protected override void Init(HttpApplication application)
{
application.PostResolveRequestCache += new EventHandler(this.OnApplicationPostResolveRequestCache);
application.PostMapRequestHandler += new EventHandler(this.OnApplicationPostMapRequestHandler);
}
private void OnApplicationPostMapRequestHandler(object sender, EventArgs e)
{
HttpContextBase context = new KoobooHttpContextWrapper(((HttpApplication)sender).Context);
this.PostMapRequestHandler(context);
}
private void OnApplicationPostResolveRequestCache(object sender, EventArgs e)
{
HttpContextBase context = new KoobooHttpContextWrapper(((HttpApplication)sender).Context);
this.PostResolveRequestCache(context);
}
}
}
|