public override bool ShouldRestart(RestartableContext context) { if (context.FailedCount < 10) { return(true); } return(false); }
public bool ShouldRestart(RestartableContext context) { _state.Context = context; if (context.FailedCount < _state.NumberOfRestarts) { return(true); } _waitBlock.Release(); return(false); }
public bool ShouldRestart(RestartableContext context) { return(false); }
public bool ShouldRestart(RestartableContext context) { throw new ShouldRestartException(); }
public bool ShouldRestart(RestartableContext context) { return(context.FailedCount < 5u); }