Relative Content

Tag Archive for c#.net-corepolly

Combining Retry and Wait-and-Retry Policies in Polly

I have created two policies. One to retry after every failure. Per my logs, I see the count from 1-3 on the retry. The problem arises when i attempt the wait and retry for 10 minutes.
I have defined another policy to wait for 10 mins and retry again once. On failure, I want it to stop retrying and just the result to break out of the for each. But for some reason, it goes back to the original policy.
I “chain” them using Policy.Wrap . Is this the right API for this?