public ITask CreateTaskInstance(IDynamicTask template, string name, TaskConfiguration taskConfiguration) { return(new DynamicTaskInstance(template, name, taskConfiguration)); }
public DynamicTaskInstance(IDynamicTask parentTask, string instanceName, TaskConfiguration configuration) { ParentTask = parentTask ?? throw new ArgumentNullException(nameof(parentTask)); Name = instanceName ?? throw new ArgumentNullException(nameof(instanceName)); Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); }