A CacheAspect That Supports Async Method (Even Generics) #238
bleesteady
started this conversation in
General
Replies: 1 comment
-
Hey @bleesteady , I know it's been half a year, but if you are still for solutions - have a look here Sorry for delay mate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys. I struggled with this for some time, and I didn't see any great solutions to handle async methods with an "Around" Advice. But this seems to do the trick. I hope this helps somebody else out!
`[AspectInjector.Broker.Aspect(Scope.Global)]
[Injection(typeof(CacheAspect))]
public class CacheAspect : Attribute
{
private static IDistributedCache _cache;
}`
Beta Was this translation helpful? Give feedback.
All reactions