protected Task(XElement element, Task parent) { Debug.Assert(element != null); Node = element; Parent = parent; }
public static Task Create(XElement element, Task parent) { Type result; if (!_taskTypes.TryGetValue(element.Name.ToString(), out result)) throw new ArgumentOutOfRangeException("element", element.Name, "Unsupported manifest task type."); return Activator.CreateInstance(result, element, parent) as Task; }
public ContainerTask(XElement node, Task parent) : base(node, parent) { List<Task> childTasks = new List<Task>(); foreach (XElement child in node.Elements()) { childTasks.Add(TaskFactory.Create(child, this)); } Tasks = childTasks; }
internal ContainerTask(XElement node, Task parent, bool populateChildTasks) : base(node, parent) { if (populateChildTasks) { List<Task> childTasks = new List<Task>(); foreach (XElement child in node.Elements()) { childTasks.Add(TaskFactory.Create(child, this)); } Tasks = childTasks; } }
public EnsureDirectoriesTask(XElement element, Task parent) : base(element, parent) { }
public SetVariableTask(XElement element, Task parent) : base(element, parent) { VariableName = element.Attribute("VariableName").Value; OriginalValue = element.Attribute("Value").Value; }
protected ConditionalTask(XElement element, Task parent) : base(element, parent, false) { }
public IfStepSucceededTask(XElement element, Task parent) : base(element, parent) { }
public KillAllProcessesTask(XElement element, Task parent) : base(element, parent) { }
public CopyAllFilesTask(XElement element, Task parent) : base(element, parent) { }