Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 372 Bytes

README.MD

File metadata and controls

14 lines (14 loc) · 372 Bytes

Reusable Retry Logic for transient fault handling with exponential backoff and stochastic exponential backoff. Example usage:

new Retrier().WithMaximumRetryCount(5)
    .WithInitialRetryDelay(TimeSpan.FromSeconds(3))
    .WithStochasticExponentialBackOff()
    .Execute
    (
        () =>
        {
            // stuff that fails sometimes. 😅
        }
    );