SharpCrafters Forum – Fault Tolerance

SharpCrafters Support Forum

        


Fault Tolerance Expand / Collapse
Author
Message
Posted 10/1/2009 8:58:21 PM


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?
Post #3662
Posted 10/2/2009 6:36:40 AM


Gael Fraiteur

SharpCrafters
You can use OnMethodInvocation for retries
(call e.Proceed() in a loop).

-g
Post #3663
Posted 10/2/2009 8:01:49 PM


Community Member
Do you get the original message that was sent?
Post #3664
Posted 10/4/2009 10:55:56 AM


Gael Fraiteur

SharpCrafters
Yes.
Post #3665
Posted 10/4/2009 5:02:32 PM


Community Member
Thank you.
Post #3666
« Prev Topic | Next Topic »


All times are GMT +1:00, Time now is 11:34am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.112. 8 queries. Compression Disabled.