/// <summary>
        /// @see IStepExecutionDao#AddStepExecutions.
        /// </summary>
        /// <param name="jobExecution"></param>
        public void AddStepExecutions(JobExecution jobExecution)
        {
            IDictionary <long?, StepExecution> executions;

            if (jobExecution.Id == null || (!_executionsByJobExecutionId.TryGetValue(jobExecution.Id, out executions) || executions.Count == 0))
            {
                return;
            }
            IList <StepExecution> result = new List <StepExecution>(executions.Values).OrderByDescending(s => s.Id).ToList();

            IList <StepExecution> copy = result.Select(Copy).ToList();

            jobExecution.AddStepExecutions(copy);
        }
Esempio n. 2
0
        /// <summary>
        /// @see IStepExecutionDao#AddStepExecutions.
        /// </summary>
        /// <param name="jobExecution"></param>
        public void AddStepExecutions(JobExecution jobExecution)
        {
            IDictionary<long?, StepExecution> executions;
            if (jobExecution.Id == null || (!_executionsByJobExecutionId.TryGetValue(jobExecution.Id, out executions) || executions.Count == 0))
            {
                return;
            }
            IList<StepExecution> result = new List<StepExecution>(executions.Values).OrderByDescending(s => s.Id).ToList();

            IList<StepExecution> copy = result.Select(Copy).ToList();
            jobExecution.AddStepExecutions(copy);
        }