-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Do we need Name and DisplayName on ActionDescriptor #4506
Comments
No we don't need both on AD. We should rename |
3-Done? 😄 |
Done done |
Now that |
I had the same issue as @senritsu as I am trying to migrate my project to RTM. Here is what I did:
We can cast ActionDescriptor to ControllerActionDescriptor |
You can either use If this is for logging, the framework already logs enter/exit, what can we fix in the framework to make this meet your needs? |
I think it is used for excluding a few actions from a global action filter. Why it does not use attributes or something to achieve that, i don't know. If casting works that is fine for now. Sooner or later the code will have to be refactored to be not horrible anyways. |
I'd suggest doing something like this to make not horrible as you put it 😆. This is a common pattern that we've used inside the framework, example here
This gives |
It's not clear what the difference is between these. I think we probably want to remove
Name
and addActionName
toControllerActionDescriptor
- the more specialized typeThe text was updated successfully, but these errors were encountered: