Пример #1
0
 protected override WorkState Do(WorkState currentWorkState)
 {
     if (Job.CurrentWorkState != currentWorkState)
     {
         Job.CurrentWorkState = currentWorkState;
     }
     return(EvaluateWorkState(Job.CurrentWorkState) ? IfTrueWorker.Do(Job) : ElseWorker.Do(Job));
 }
Пример #2
0
 protected override WorkState Do()
 {
     return(Condition ? IfTrueWorker.Do(this.Job) : ElseWorker.Do(this.Job));
 }