Created
April 10, 2012 23:29
-
-
Save hammett/2355591 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MsMvcHandler : Castle.MonoRail.Hosting.ComposableHandler | |
{ | |
public override bool TryProcessRequest(HttpContextBase request) | |
{ | |
var routeData = RouteTable.Routes.GetRouteData(request); | |
if (routeData != null) | |
{ | |
var routeHandler = routeData.RouteHandler; | |
var requestContext = new RequestContext(request, routeData); | |
IHttpHandler httpHandler = routeHandler.GetHttpHandler(requestContext); | |
httpHandler.ProcessRequest(HttpContext.Current); | |
return true; | |
} | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment