protected override WorkState Do(WorkState currentWorkState) { if (Job.CurrentWorkState != currentWorkState) { Job.CurrentWorkState = currentWorkState; } return(EvaluateWorkState(Job.CurrentWorkState) ? IfTrueWorker.Do(Job) : ElseWorker.Do(Job)); }
protected override WorkState Do() { return(Condition ? IfTrueWorker.Do(this.Job) : ElseWorker.Do(this.Job)); }