A simple library for retrying and waiting for a condition to be True.
var maxWaitTime = TimeSpan.FromSeconds(10);
var pollingInterval = TimeSpan.FromSeconds(1);
var retry = new Retry(maxWaitTime, pollingInterval);
retry.Until(DoSomething);
bool DoSomething()
{
// do something
// return true if successful
// return false if not successful
return true;
}
All Unit Tests can be found under the Retry.Tests namesapce.
Available on: