Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public System.Web.IHttpHandler GetHttpHandler(RequestContext requestContext)
 {
     return null;
 }