public void Do(TaskTree taskTree) { Debug.Assert(taskTree.root != null); Debug.Assert(!taskTree.root.IsAttached); tasks.Add(taskTree.DistributedTree()); taskTree.root.SetStatus(Task.TaskStatus.Pending); }
public void Then(TaskTree taskTree) { Debug.Assert(!taskTree.root.IsAttached); nextTasks = new List <Task>() { taskTree.DistributedTree() }; }