I have mapped routes in my application:
context.MapRoute("Home.Index", "home/{action}/{parameter}",
new { controller = "Home", action = "Index", parameter = UrlParameter.Optional });
I wrote an attribute that inherits from: AuthorizeAttribute
, which decorates some methods. When you run the attribute method:
protected override bool AuthorizeCore(HttpContextBase httpContext){ }
I would like to get name
of route Home.Index
through object: httpContext.
Is this possible?