|
|
|
Community Member
|
|
So there's a method that calls out to a remote service. Is it somehow possible to utilize PostSharp to retry the message if something fails? Now, I know you can use the OnExceptionAspect, but that will give you the exception and take you to a different class with your aspect. How would I retry the call again? How would one get the message that was sent? When I retry, I want to retry with the same message except for one value. Basically, I'd like to retry with a different unique identifier? In other words, If my messgae had 3 values, I'd like to retry with the 2 values but the 3rd will be different.
Any ideas?
|
|
|
|
|
Gael Fraiteur
SharpCrafters
|
|
You can use OnMethodInvocation for retries (call e.Proceed() in a loop).
-g
|
|
|
|
|
Community Member
|
|
|
Do you get the original message that was sent?
|
|
|
|
|
Gael Fraiteur
SharpCrafters
|
|
|
|
|
|
Community Member
|
|
|
|
|