3

I was asked to build a mechanism for 3 retries before generating a request exception.

We have this topology :

enter image description here

Service1 calls Service2.

If 3 times in a row has failed - generate an excpetion.

Is there any retry mechanism in WCF ?

Royi Namir
  • 144,742
  • 138
  • 468
  • 792

1 Answers1

6

The WCF technology addressing this is Reliable Messaging. I think MaxRetryCount is the attribute you are looking for.

Here is an example with a custom binding using MaxRetryCount.

Community
  • 1
  • 1
Dirk Brockhaus
  • 4,922
  • 3
  • 38
  • 47