Пример #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);
        }
Пример #2
0
 public System.Web.IHttpHandler GetHttpHandler(RequestContext requestContext)
 {
     return null;
 }