How to use same decor for controller #14
Unanswered
pankajjadhav-gep
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @pankajjadhav-gep , Glad you find the package helpful. Using decorators on asp.net controllers is difficult. I don't know if there even is a right way of doing it. That is due to how asp.net controllers are being constructed, which makes it difficult to attach dynamic proxy interceptors. This might change in the future for Decor version 3, which will be using source generators instead of dynamic proxies. But no guarantees. For now, I would suggest to go with asp.net's way of intercepting requests on controller level either using a middleware or a filter. Sorry for not being of much help. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @lawrence-laz ,
This package is really helpful. I have one question.
can I use same decor on method which is available in my controller ?
How to use? please share any codebase or example
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions