You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to run async code around (before and after) a method. I can run code both by creating an Aspect and by creating a derived attribute from one of the Universal attributes. Both options allow me to decorate an async function (a function returning a Task), but none of these options allow me (at least not that I found it) to run async code in the aspect itself.
BaseUniversalWrapperAttribute has a virtual WrapAsync function that would allow me to do what I need, but for some reason it is marked as internal so I can't override it.
Is there a way currently to run async code in an aspect?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to run async code around (before and after) a method. I can run code both by creating an Aspect and by creating a derived attribute from one of the Universal attributes. Both options allow me to decorate an async function (a function returning a Task), but none of these options allow me (at least not that I found it) to run async code in the aspect itself.
BaseUniversalWrapperAttribute
has a virtual WrapAsync function that would allow me to do what I need, but for some reason it is marked as internal so I can't override it.Is there a way currently to run async code in an aspect?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions