using JiShe.CollectBus.ScheduledMeterReading;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.BackgroundWorkers.Hangfire;
using Volo.Abp.DependencyInjection;

namespace JiShe.CollectBus.Workers
{
    /// <summary>
    /// 定时数据检测1小时一次
    /// </summary>
    public class DataDetectionFifteenMinuteWorker : HangfireBackgroundWorkerBase, ITransientDependency, ICollectWorker
    {

        private readonly ILogger<CreateToBeIssueTaskWorker> _logger;
        private readonly IScheduledMeterReadingService _scheduledMeterReadingService;

        public DataDetectionFifteenMinuteWorker(ILogger<CreateToBeIssueTaskWorker> logger, IScheduledMeterReadingService scheduledMeterReadingService)
        {
            _logger = logger;
            RecurringJobId = nameof(CreateToBeIssueTaskWorker);
            CronExpression = "0 0 0/1 * * ?";
            TimeZone = TimeZoneInfo.Local;
            this._scheduledMeterReadingService = scheduledMeterReadingService;
        }


        public override Task DoWorkAsync(CancellationToken cancellationToken = default)
        {
            //throw new NotImplementedException();
           return Task.CompletedTask;
        }
    }
}
