Skip to content

Instantly share code, notes, and snippets.

@hammett hammett/gist:2355591
Created Apr 10, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.