public void Demultiplex(Object sender, EventArgs e) { HttpApplication app = sender as HttpApplication; // Find the route that adheres best to the request. Route route = FindBestRoute(app.Request.Url); IRouteHandler routeHandler = Activator.CreateInstance(route.RouteHandler, false) as IRouteHandler; RequestContext requestContext = new RequestContext(new Spartanprogramming.Web.MVC.HttpContext(app.Context), new RouteData()); IHttpHandler httpHandler = routeHandler.GetHttpHandler(requestContext); }
public System.Web.IHttpHandler GetHttpHandler(RequestContext requestContext) { return null; }