Trying to add functionality to MvcHandler
- by Alexandre Brisebois
I am currently trying to add 301 redirect to my routes in MVC
to do this I have tried to inherit from the MvcHandler.
The handler gets instantited with the right values. but I am never able to debug the overridden methods.
can someone show me a working attempt at this? the asp.net pipe simply seems to the doing its own thing...
public class CodeHttpHandler : MvcHandler
{
public CodeHttpHandler(RequestContext p_requestContext)
: base(p_requestContext)
{
}
protected override void ProcessRequest(HttpContext p_httpContext)
{
}
protected override void ProcessRequest(HttpContextBase p_httpContext)
{
}
}