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

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

@weedkiller

Description

@weedkiller

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...
        }
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions