Ejemplo n.º 1
0
 internal RetryImpl(Action retry, Func <bool> isDonePredicate, IExceptionBehavior behavior, IWaitHandler waitHandler)
     : this(() =>
 {
     retry();
     return(isDonePredicate());
 }, behavior, waitHandler)
 { }
Ejemplo n.º 2
0
 internal RetryImpl(Action retry, IExceptionBehavior behavior, IWaitHandler waitHandler)
     : this(() =>
 {
     retry();
     return(true);
 }, behavior, waitHandler)
 { }
Ejemplo n.º 3
0
 internal RetryImpl(Func <bool> retry, IExceptionBehavior behavior, IWaitHandler waitHandler)
 {
     toRetry          = retry;
     this.behavior    = behavior;
     this.waitHandler = waitHandler;
 }
Ejemplo n.º 4
0
 internal RetryImpl(Action retry, Func <bool> isDonePredicate, IExceptionBehavior behavior)
     : this(retry, isDonePredicate, behavior, new WaitHandlerImpl())
 {
 }
Ejemplo n.º 5
0
        public RetryImpl OnException(IExceptionBehavior behavior)
        {
            this.behavior = behavior;

            return(this);
        }