using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using PARR.Core.Repositories.Interfaces; using PARR.DAL.NextRunServices; using PARR.Domain.Entities; using PARR.Domain.Entities.Base.History; using PARR.Domain.Enums; namespace PARR.NextRun.Services { internal class NextRunUpdateService : INextRunUpdateService { private readonly ILogger logger; private readonly ITemplateRepository templateService; private readonly INextRunService nextRunService; private readonly IRobotConfigurationRepository robotConfigurationService; public NextRunUpdateService( ILogger logger, ITemplateRepository templateService, INextRunService nextRunService, IRobotConfigurationRepository robotConfigurationService ) { this.logger = logger; this.templateService = templateService; this.nextRunService = nextRunService; this.robotConfigurationService = robotConfigurationService; } public async Task UpdateNextRunForTemplatesAsync(Func, IQueryable