Skip to content

Commit 41c62b9

Browse files
committed
Update with latest API
1 parent 7564184 commit 41c62b9

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

ApiReview/API.Polly.Core/NoDocs/Polly.Hedging/HedgingStrategyOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ namespace Polly.Hedging;
99

1010
public class HedgingStrategyOptions<TResult> : ResilienceStrategyOptions
1111
{
12-
public TimeSpan HedgingDelay { get; set; }
13-
[Range(2, 10)]
12+
public TimeSpan Delay { get; set; }
13+
[Range(1, 10)]
1414
public int MaxHedgedAttempts { get; set; }
1515
[Required]
1616
public Func<HedgingPredicateArguments<TResult>, ValueTask<bool>> ShouldHandle { get; set; }
1717
[Required]
18-
public Func<HedgingActionGeneratorArguments<TResult>, Func<ValueTask<Outcome<TResult>>>?> HedgingActionGenerator { get; set; }
19-
public Func<HedgingDelayGeneratorArguments, ValueTask<TimeSpan>>? HedgingDelayGenerator { get; set; }
18+
public Func<HedgingActionGeneratorArguments<TResult>, Func<ValueTask<Outcome<TResult>>>?> ActionGenerator { get; set; }
19+
public Func<HedgingDelayGeneratorArguments, ValueTask<TimeSpan>>? DelayGenerator { get; set; }
2020
public Func<OnHedgingArguments<TResult>, ValueTask>? OnHedging { get; set; }
2121
public HedgingStrategyOptions();
2222
}

ApiReview/API.Polly.Core/NoDocs/Polly.Retry/RetryBackoffType.cs renamed to ApiReview/API.Polly.Core/NoDocs/Polly.Retry/DelayBackoffType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Polly.Retry;
44

5-
public enum RetryBackoffType
5+
public enum DelayBackoffType
66
{
77
Constant = 0,
88
Linear = 1,

ApiReview/API.Polly.Core/NoDocs/Polly.Retry/RetryStrategyOptions.TResult.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ namespace Polly.Retry;
1111
public class RetryStrategyOptions<TResult> : ResilienceStrategyOptions
1212
{
1313
[Range(1, int.MaxValue)]
14-
public int RetryCount { get; set; }
15-
public RetryBackoffType BackoffType { get; set; }
14+
public int MaxRetryAttempts { get; set; }
15+
public DelayBackoffType BackoffType { get; set; }
1616
public bool UseJitter { get; set; }
1717
[Range(typeof(TimeSpan), "00:00:00", "1.00:00:00")]
18-
public TimeSpan BaseDelay { get; set; }
18+
public TimeSpan Delay { get; set; }
1919
[Required]
2020
public Func<RetryPredicateArguments<TResult>, ValueTask<bool>> ShouldHandle { get; set; }
21-
public Func<RetryDelayGeneratorArguments<TResult>, ValueTask<TimeSpan>>? RetryDelayGenerator { get; set; }
21+
public Func<RetryDelayGeneratorArguments<TResult>, ValueTask<TimeSpan>>? DelayGenerator { get; set; }
2222
public Func<OnRetryArguments<TResult>, ValueTask>? OnRetry { get; set; }
2323
[EditorBrowsable(EditorBrowsableState.Never)]
2424
[Required]

0 commit comments

Comments
 (0)