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

            return(this);
        }