Exemple #1
0
 /// <inheritdoc/>
 public TResult Execute <TResult>(Func <TResult> action)
 {
     if (DelegatedPolicy != null)
     {
         return(DelegatedPolicy.Execute(action));
     }
     return(UnderlyingPolicy.Execute(action));
 }
 /// <inheritdoc/>
 public TResult Execute <TResult>(Func <TResult> action)
 {
     ThrowIfAsyncAction(typeof(TResult));
     if (DelegatedPolicy != null)
     {
         return(DelegatedPolicy.Execute(action));
     }
     return(UnderlyingPolicy.Execute(action));
 }
Exemple #3
0
 /// <inheritdoc/>
 public void Execute(Action action)
 {
     if (DelegatedPolicy != null)
     {
         DelegatedPolicy.Execute(action);
     }
     else
     {
         UnderlyingPolicy.Execute(action);
     }
 }