Skip to content

Commit

Permalink
API review
Browse files Browse the repository at this point in the history
  • Loading branch information
martintmk committed Jun 19, 2023
1 parent 8fce8fc commit d4ce5d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Polly.Core/Retry/RetryStrategyOptions.TResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public class RetryStrategyOptions<TResult> : ResilienceStrategyOptions
/// Gets or sets the type of the back-off.
/// </summary>
/// <remarks>
/// <para>
/// This property is ignored when <see cref="RetryDelayGenerator"/> is set.
/// </para>
/// Defaults to <see cref="RetryBackoffType.Constant"/>.
/// </remarks>
public RetryBackoffType BackoffType { get; set; } = RetryConstants.DefaultBackoffType;
Expand All @@ -51,6 +54,9 @@ public class RetryStrategyOptions<TResult> : ResilienceStrategyOptions
/// </item>
/// </list>
/// <para>
/// This property is ignored when <see cref="RetryDelayGenerator"/> is set.
/// </para>
/// <para>
/// Defaults to 2 seconds.
/// </para>
/// </remarks>
Expand All @@ -71,6 +77,9 @@ public class RetryStrategyOptions<TResult> : ResilienceStrategyOptions
/// Gets or sets the generator instance that is used to calculate the time between retries.
/// </summary>
/// <remarks>
/// <para>
/// The generator has precedence over <see cref="BaseDelay"/> and <see cref="BackoffType"/>.
/// </para>
/// Defaults to <see langword="null"/>.
/// </remarks>
public Func<OutcomeArguments<TResult, RetryDelayArguments>, ValueTask<TimeSpan>>? RetryDelayGenerator { get; set; }
Expand Down

0 comments on commit d4ce5d4

Please sign in to comment.