예제 #1
0
 protected Precondition After(WorkflowTask <TWfContext> workflowTask)
 {
     return(new Precondition(this, workflowTask));
 }
예제 #2
0
 public void Do(WorkflowTask <TWfContext> workflowTask)
 {
     _workflow._tasks.Add(workflowTask, this);
 }
예제 #3
0
 public void Do <TCompleteMessage>(WorkflowTask <TWfContext, TCompleteMessage> workflowTask)
 {
     _workflow._tasks.Add(workflowTask, this);
     _workflow._continuesOn.Add(workflowTask, typeof(TCompleteMessage));
 }
예제 #4
0
 public Precondition(Workflow <TWfContext> workflow, WorkflowTask <TWfContext> workflowTask) : this(workflow)
 {
     _workflowTask = workflowTask;
 }
예제 #5
0
 public bool HasFinished(WorkflowTask <TWfContext> task) => _finishedTasks.Contains(task);
예제 #6
0
 public void FinishTask(WorkflowTask <TWfContext> task)
 {
     _finishedTasks.Add(task);
 }
예제 #7
0
 public bool HasStarted(WorkflowTask <TWfContext> task) => _startedTasks.Contains(task);
예제 #8
0
 public void StartTask(WorkflowTask <TWfContext> task)
 {
     _startedTasks.Add(task);
 }