Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SynchronousTaskListWorkflow(params BaseSynchronousTask[] tasks)
- {
- if (tasks.Length == 0) throw new ArgumentException("Task list cannot be empty");
- WorkflowNode current = null;
- for (int i = tasks.Length; i >= 1; i--)
- current = new WorkflowNode(tasks[i - 1].Name, tasks[i - 1], current);
- if (current == null)
- current = new WorkflowNode(tasks[0].Name, null);
- root = current;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement