public static void Log(IJobElement item, string action) { //Console.WriteLine($"{item.Job.Id} :: {action} {item.Element}."); if (!order.ContainsKey(action)) { order.Add(action, 1); } else { order[action]++; } //item.AddEvent((int)(DateTime.Now - begin).TotalMilliseconds, order[action], action); }
public JobElement(IJobElement element, T newData) { Job = element.Job; Nr = element.Nr; _currentStepName = element.CurrentStepName; CompletedStepName = element.CompletedStepName; Properties = element.Properties; Steps = element.Steps; Data = newData; Job.UpdateElement(this); }
void IPipelineJob.UpdateElement(IJobElement newElement) { Elements[newElement.Nr] = newElement; }