Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is possilbe to make a Retry attribute? #91

Open
shuizhugeju opened this issue Nov 15, 2021 · 2 comments
Open

It is possilbe to make a Retry attribute? #91

shuizhugeju opened this issue Nov 15, 2021 · 2 comments

Comments

@shuizhugeju
Copy link

It is possilbe to make a Retry attribute

@Ralf1108
Copy link
Collaborator

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

@Ralf1108
Copy link
Collaborator

example retry Polly policy:
https://github.com/App-vNext/Polly#retry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants