Understanding how the Recoverability logic works

I am trying to understand code that handles the retry when errors occur. The code has:

 recoverability.Delayed(delayed =>
{
   delayed.TimeIncrease(TimeSpan.FromMinutes("900")));
});

And this:

 recoverability.Delayed(delayed =>
{
delayed.NumberOfRetries(7).TimeIncrease(TimeSpan.FromSeconds("180"));
});

Why is the first Time Increase needed? If the number of retries timespan grows, what does the first one do?

Hi Jeff,

The first time increase is not needed. Its a fluent API. These update the same time increase value and if Iā€™m not mistaken last writer wins.

See the guidance for delayed delivery at:

ā€“ Ramon

1 Like

Thanks Ramon for your response