protected Precondition After(WorkflowTask <TWfContext> workflowTask) { return(new Precondition(this, workflowTask)); }
public void Do(WorkflowTask <TWfContext> workflowTask) { _workflow._tasks.Add(workflowTask, this); }
public void Do <TCompleteMessage>(WorkflowTask <TWfContext, TCompleteMessage> workflowTask) { _workflow._tasks.Add(workflowTask, this); _workflow._continuesOn.Add(workflowTask, typeof(TCompleteMessage)); }
public Precondition(Workflow <TWfContext> workflow, WorkflowTask <TWfContext> workflowTask) : this(workflow) { _workflowTask = workflowTask; }
public bool HasFinished(WorkflowTask <TWfContext> task) => _finishedTasks.Contains(task);
public void FinishTask(WorkflowTask <TWfContext> task) { _finishedTasks.Add(task); }
public bool HasStarted(WorkflowTask <TWfContext> task) => _startedTasks.Contains(task);
public void StartTask(WorkflowTask <TWfContext> task) { _startedTasks.Add(task); }