using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using AsbCloudApp.Data; using AsbCloudApp.Repositories; using AsbCloudApp.Requests; using AsbCloudApp.Requests.ExportOptions; using AsbCloudApp.Services; using AsbCloudInfrastructure.Services.ExcelServices; namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Export; public abstract class ProcessMapPlanExportService : ExportExcelService where TDto : ChangeLogAbstract { protected readonly IWellService wellService; private readonly IChangeLogRepository processMapPlanRepository; protected ProcessMapPlanExportService(IChangeLogRepository processMapPlanRepository, IWellService wellService) { this.processMapPlanRepository = processMapPlanRepository; this.wellService = wellService; } protected override async Task> GetDtosAsync(WellRelatedExportRequest options, CancellationToken token) { var request = new ProcessMapPlanBaseRequestWithWell(options.IdWell) { Moment = DateTimeOffset.UtcNow }; var dtos = await processMapPlanRepository.Get(request, token); return dtos; } }