Beispiel #1
0
 public override IAsyncPolicy BuildAsync(MethodReflector method)
 {
     return(PolicyExtensions.CreatePolicyBuilder(ExceptionType).RetryAsync(retryCount));
 }
 public override IAsyncPolicy BuildAsync(MethodReflector method)
 {
     return(PolicyExtensions.CreatePolicyBuilder(ExceptionType)
            .CircuitBreakerAsync(exceptionsAllowedBeforeBreaking, durationOfBreak));
 }
Beispiel #3
0
 public override IAsyncPolicy BuildAsync(MethodReflector method)
 {
     return(PolicyExtensions.CreatePolicyBuilder(ExceptionType)
            .AdvancedCircuitBreakerAsync(failureThreshold, samplingDuration, minimumThroughput, durationOfBreak));
 }