public static IAsyncPolicy <HttpResponseMessage> WaitAndRetryAsync( this PolicyBuilder <HttpResponseMessage> policyBuilder, RetryPolicySettings settings) { var handler = new RetryPolicyHandler(settings); return(policyBuilder .WaitAndRetryAsync( handler.RetryCount, handler.SleepDurationProvider, handler.OnRetry)); }
internal RetryPolicyHandler(RetryPolicySettings retryPolicySettings) { _retryPolicySettings = retryPolicySettings; }