@@ -10,8 +10,10 @@ public static Task<TResult> RaiseResultSequenceAsync<TResult>(this AsyncPolicy<T
1010 public static Task < TResult > RaiseResultSequenceAsync < TResult > ( this AsyncPolicy < TResult > policy , IEnumerable < TResult > resultsToRaise ) =>
1111 policy . RaiseResultSequenceAsync ( default , resultsToRaise ) ;
1212
13- public static async Task < TResult > RaiseResultSequenceAsync < TResult > ( this AsyncPolicy < TResult > policy ,
14- CancellationToken cancellationToken , IEnumerable < TResult > resultsToRaise )
13+ public static async Task < TResult > RaiseResultSequenceAsync < TResult > (
14+ this AsyncPolicy < TResult > policy ,
15+ CancellationToken cancellationToken ,
16+ IEnumerable < TResult > resultsToRaise )
1517 {
1618 using var enumerator = resultsToRaise . GetEnumerator ( ) ;
1719 return await policy . ExecuteAsync ( _ =>
@@ -28,12 +30,13 @@ public static async Task<TResult> RaiseResultSequenceAsync<TResult>(this AsyncPo
2830 public static Task < TResult > RaiseResultAndOrExceptionSequenceAsync < TResult > ( this AsyncPolicy < TResult > policy , params object [ ] resultsOrExceptionsToRaise ) =>
2931 policy . RaiseResultAndOrExceptionSequenceAsync ( resultsOrExceptionsToRaise . ToList ( ) ) ;
3032
31- public static Task < TResult > RaiseResultAndOrExceptionSequenceAsync < TResult > ( this AsyncPolicy < TResult > policy ,
32- IEnumerable < object > resultsOrExceptionsToRaise ) =>
33+ public static Task < TResult > RaiseResultAndOrExceptionSequenceAsync < TResult > ( this AsyncPolicy < TResult > policy , IEnumerable < object > resultsOrExceptionsToRaise ) =>
3334 policy . RaiseResultAndOrExceptionSequenceAsync ( CancellationToken . None , resultsOrExceptionsToRaise ) ;
3435
35- public static async Task < TResult > RaiseResultAndOrExceptionSequenceAsync < TResult > ( this AsyncPolicy < TResult > policy ,
36- CancellationToken cancellationToken , IEnumerable < object > resultsOrExceptionsToRaise )
36+ public static async Task < TResult > RaiseResultAndOrExceptionSequenceAsync < TResult > (
37+ this AsyncPolicy < TResult > policy ,
38+ CancellationToken cancellationToken ,
39+ IEnumerable < object > resultsOrExceptionsToRaise )
3740 {
3841 using var enumerator = resultsOrExceptionsToRaise . GetEnumerator ( ) ;
3942 return await policy . ExecuteAsync ( _ =>
@@ -67,15 +70,21 @@ public class ResultAndOrCancellationScenario
6770 public bool ActionObservesCancellation = true ;
6871 }
6972
70- public static Task < TResult > RaiseResultSequenceAndOrCancellationAsync < TResult > ( this AsyncPolicy < TResult > policy ,
71- Scenario scenario , CancellationTokenSource cancellationTokenSource , Action onExecute ,
73+ public static Task < TResult > RaiseResultSequenceAndOrCancellationAsync < TResult > (
74+ this AsyncPolicy < TResult > policy ,
75+ Scenario scenario ,
76+ CancellationTokenSource cancellationTokenSource ,
77+ Action onExecute ,
7278 params TResult [ ] resultsToRaise ) =>
7379 policy . RaiseResultSequenceAndOrCancellationAsync ( scenario , cancellationTokenSource , onExecute ,
7480 resultsToRaise . ToList ( ) ) ;
7581
7682 public static async Task < TResult > RaiseResultSequenceAndOrCancellationAsync < TResult > (
77- this AsyncPolicy < TResult > policy , Scenario scenario , CancellationTokenSource cancellationTokenSource ,
78- Action onExecute , IEnumerable < TResult > resultsToRaise )
83+ this AsyncPolicy < TResult > policy ,
84+ Scenario scenario ,
85+ CancellationTokenSource cancellationTokenSource ,
86+ Action onExecute ,
87+ IEnumerable < TResult > resultsToRaise )
7988 {
8089 int counter = 0 ;
8190
0 commit comments