/// <summary> /// Builds a <see cref="Policy" /> that will retry indefinitely. /// </summary> /// <param name="policyBuilder">The policy builder.</param> /// <returns>The policy instance.</returns> public static RetryPolicy RetryForeverAsync(this PolicyBuilder policyBuilder) { Action <Exception> doNothing = _ => { }; return(policyBuilder.RetryForeverAsync(doNothing)); }