/// <summary> /// Creates a new equipartition tasks. /// </summary> /// <param name="group">The group identifier.</param> /// <param name="task">The task to create.</param> /// <param name="autoRemove">true if remove the item all done automatically; otherwise, false.</param> /// <returns>A new equipartition tasks created.</returns> public EquipartitionTask Create(string group, EquipartitionTask task, bool autoRemove = true) { return(Create(group, new[] { task }, autoRemove) > 0 ? task : null); }
private static void WriteLine(EquipartitionTask t) { Console.WriteLine($"{t.Description ?? t.Id}\t{t.JobId}\t{t.GetProcessingFragments().Count()} + {t.GetDoneFragments().Count()} / {t.Count}"); }