Get route.name through HttpContextBase

0

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?

    
asked by anonymous 31.07.2017 / 20:40

0 answers