示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 void IPipelineJob.UpdateElement(IJobElement newElement)
 {
     Elements[newElement.Nr] = newElement;
 }