Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

How to get controllers and actions attributes without using reflection #522

Open
weedkiller opened this issue Oct 22, 2016 · 0 comments
Open

Comments

@weedkiller
Copy link

weedkiller commented Oct 22, 2016

hello, how can I get all controller/action filters and attributes without using reflection.

for e.g. I want to parse and get similar results from NRefactory

public void OnActionExecuting(ActionExecutingContext c) 
     // how can I do something similar in Nrefactory
     {
       var controllerActionDes = c.ActionDescriptor as ControllerActionDescriptor;
       if (controllerActionDescriptor != null)
        {
        var actionAttributes = controllerActionDes .MethodInfo...
        }
     }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant