File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
ApiReview/API.Polly.Core/NoDocs Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ namespace Polly.Hedging;
99
1010public 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}
Original file line number Diff line number Diff line change 22
33namespace Polly . Retry ;
44
5- public enum RetryBackoffType
5+ public enum DelayBackoffType
66{
77 Constant = 0 ,
88 Linear = 1 ,
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ namespace Polly.Retry;
1111public 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 ]
You can’t perform that action at this time.
0 commit comments