コード例 #1
0
ファイル: UrlRoutingModule.cs プロジェクト: ciriarte/nwd
        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
ファイル: MvcRouteHandler.cs プロジェクト: ciriarte/nwd
 public System.Web.IHttpHandler GetHttpHandler(RequestContext requestContext)
 {
     return null;
 }