Trying to add functionality to MvcHandler
Posted
by Alexandre Brisebois
on Stack Overflow
See other posts from Stack Overflow
or by Alexandre Brisebois
Published on 2010-05-15T18:43:21Z
Indexed on
2010/05/16
10:20 UTC
Read the original article
Hit count: 278
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)
{
}
}
© Stack Overflow or respective owner