/// <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)); }
/// <inheritdoc/> public void Execute(Action action) { if (DelegatedPolicy != null) { DelegatedPolicy.Execute(action); } else { UnderlyingPolicy.Execute(action); } }