Polly.RetrySyntaxAsync.RetryForeverAsync C# (CSharp) Method

RetryForeverAsync() public static method

Builds a Policy that will retry indefinitely.
public static RetryForeverAsync ( this policyBuilder ) : RetryPolicy
policyBuilder this The policy builder.
return Polly.Retry.RetryPolicy
        public static RetryPolicy RetryForeverAsync(this PolicyBuilder policyBuilder)
        {
            Action<Exception> doNothing = _ => { };

            return policyBuilder.RetryForeverAsync(doNothing);
        }

Same methods

RetrySyntaxAsync::RetryForeverAsync ( this policyBuilder, Context>.Action onRetry ) : RetryPolicy
RetrySyntaxAsync::RetryForeverAsync ( this policyBuilder, Action onRetry ) : RetryPolicy
RetrySyntaxAsync::RetryForeverAsync ( this policyBuilder, Func onRetryAsync ) : RetryPolicy
RetrySyntaxAsync::RetryForeverAsync ( this policyBuilder, Task>.Func onRetryAsync ) : RetryPolicy