using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using PARR.Common.Domain; using PARR.Constants; using PARR.DAL.Models; using PARR.DAL.NextRunServices; using PARR.DAL.Services.Interfaces; namespace PARR.NextRun.Services { internal class NextRunUpdateService : INextRunUpdateService { private readonly ILogger logger; private readonly ITemplateService templateService; private readonly INextRunService nextRunService; private readonly IRobotConfigurationService robotConfigurationService; public NextRunUpdateService( ILogger logger, ITemplateService templateService, INextRunService nextRunService, IRobotConfigurationService robotConfigurationService ) { this.logger = logger; this.templateService = templateService; this.nextRunService = nextRunService; this.robotConfigurationService = robotConfigurationService; } public async Task UpdateNextRunForTemplatesAsync(Func, IQueryable