2

Hi just looking at implementing Poly (found here https://github.com/App-vNext/Polly) in our wcf calls for 3rd party api calls.

What exceptions types are worth creating the retry policy for? So far I have just got TimeoutException.

Is there anymore worth adding?

Thanks

Peter Csala
  • 17,736
  • 16
  • 35
  • 75
Paul Cooke
  • 21
  • 4

1 Answers1

2

Probably only worth handling the expected exceptions for WCF calls, TimeoutException and CommunicationException. Anything else probably indicates an issue with the api call itself, and should be handled in code.

https://learn.microsoft.com/en-us/dotnet/framework/wcf/samples/expected-exceptions

Peter Csala
  • 17,736
  • 16
  • 35
  • 75
Ryannet
  • 345
  • 2
  • 10