Example #1
0
        public void GenerateBatch()
        {
            var batchSize   = _dbContext.BatchConfiguration.BatchSize;
            var jobsToBatch = _batchService.GetNewJobs(batchSize);

            if (jobsToBatch != null && jobsToBatch.Count() == batchSize)
            {
                _batchService.CreateBatch(jobsToBatch);
            }
        }