Search code examples
polly

POLLY Nuget Package WaitAndRetryAsync Method


I am using Polly nuget package to utilize its Retry feature for webAPI/WCF calls in my project.

I am just curious to know what is maximum duration of wait we can give for WaitAndRetryAsync method?


Solution

  • Polly imposes no limit on the wait in wait-and-retry. The maximum duration of wait you can specify is therefore Timespan.MaxValue (which is probably more than you need ;~).