Beispiel #1
0
 public async Task <int> Retry_Asynchronous_With_Result_Succeeds_With_CancellationToken()
 {
     return(await AsyncPolicy.ExecuteAsync((token) => Workloads.FuncAsync <int>(token), CancellationToken.None));
 }
Beispiel #2
0
 public async Task <int> Fallback_Asynchronous_Succeeds()
 {
     return(await AsyncPolicy.ExecuteAsync(() => Workloads.FuncAsync <int>()));
 }
Beispiel #3
0
 public async Task <int> Retry_Asynchronous_With_Result_Succeeds()
 {
     return(await AsyncPolicy.ExecuteAsync(() => Workloads.FuncAsync <int>()));
 }
Beispiel #4
0
 public async Task <int> Bulkhead_Asynchronous_With_Result()
 {
     return(await AsyncPolicy.ExecuteAsync(() => Workloads.FuncAsync <int>()));
 }