Hello Doni,
You're right about the docs being a little out of date, but I think it is
just the interface of the policy. Your policy probably should look like this
public class RetryOnTimeoutPolicy : AbstractWcfPolicy
{
public override void Apply(WcfInvocation invocation)
{
try
{
invocation.Proceed();
}
catch (TimeoutException)
{
// Perhaps some exponential backoff logic here
invocation.Proceed();
}
}
}
I think the remaining parts of the documentation are correct. Give it a
shot and let me know and I'll update the docs.
-craig
On Jan 5, 2012, at 2:23 PM, DoniG wrote:
> I'm using the WCF Facility to call several services. Sometimes the
> calls timeout, and I'm trying to implement a channel action policy
> that will retry the call as in the documentation here:
> http://stw.castleproject.org/Windsor.WCF-Facility-Channel-Action-Policy.ashx
>
> But I'm getting nowhere...the documentation is outdated, and going
> through the source and tests I don't see how to implement the
> equivalent functionality in either Windsor 2.5 or 3.0.
>
> Could someone please help?
>
> Thank you,
>
> Doni
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.