@@ -29,9 +29,9 @@ internal static partial class Helper
2929 Delay = TimeSpan . FromSeconds ( 1 ) ,
3030 ShouldHandle = args => args . Outcome switch
3131 {
32- { Exception : InvalidOperationException } => PredicateResult . True ,
33- { Result : string result } when result == Failure => PredicateResult . True ,
34- _ => PredicateResult . False
32+ { Exception : InvalidOperationException } => PredicateResult . True ( ) ,
33+ { Result : string result } when result == Failure => PredicateResult . True ( ) ,
34+ _ => PredicateResult . False ( )
3535 }
3636 } )
3737 . AddTimeout ( TimeSpan . FromSeconds ( 1 ) )
@@ -43,9 +43,9 @@ internal static partial class Helper
4343 BreakDuration = TimeSpan . FromSeconds ( 5 ) ,
4444 ShouldHandle = args => args . Outcome switch
4545 {
46- { Exception : InvalidOperationException } => PredicateResult . True ,
47- { Result : string result } when result == Failure => PredicateResult . True ,
48- _ => PredicateResult . False
46+ { Exception : InvalidOperationException } => PredicateResult . True ( ) ,
47+ { Result : string result } when result == Failure => PredicateResult . True ( ) ,
48+ _ => PredicateResult . False ( )
4949 }
5050 } ) ;
5151
@@ -73,9 +73,9 @@ public static ResiliencePipeline CreateNonGenericStrategyPipeline(bool telemetry
7373 Delay = TimeSpan . FromSeconds ( 1 ) ,
7474 ShouldHandle = args => args . Outcome switch
7575 {
76- { Exception : InvalidOperationException } => PredicateResult . True ,
77- { Result : string result } when result == Failure => PredicateResult . True ,
78- _ => PredicateResult . False
76+ { Exception : InvalidOperationException } => PredicateResult . True ( ) ,
77+ { Result : string result } when result == Failure => PredicateResult . True ( ) ,
78+ _ => PredicateResult . False ( )
7979 }
8080 } )
8181 . AddTimeout ( TimeSpan . FromSeconds ( 1 ) )
@@ -87,9 +87,9 @@ public static ResiliencePipeline CreateNonGenericStrategyPipeline(bool telemetry
8787 BreakDuration = TimeSpan . FromSeconds ( 5 ) ,
8888 ShouldHandle = args => args . Outcome switch
8989 {
90- { Exception : InvalidOperationException } => PredicateResult . True ,
91- { Result : string result } when result == Failure => PredicateResult . True ,
92- _ => PredicateResult . False
90+ { Exception : InvalidOperationException } => PredicateResult . True ( ) ,
91+ { Result : string result } when result == Failure => PredicateResult . True ( ) ,
92+ _ => PredicateResult . False ( )
9393 }
9494 } ) ;
9595
0 commit comments