Open shuizhugeju opened 2 years ago
Unfortunately with our aspect it is only possible to execute code before and after the method call but it is not possible to reexecute the weaved method.
In PostSharp this is possible via the MethodInterceptionAspect
Alternative to AOP you can use the Polly library to create error handling and mitigating policies in code: https://github.com/App-vNext/Polly
example retry Polly policy: https://github.com/App-vNext/Polly#retry
It is possilbe to make a Retry attribute