Files
YunTongJackYunTask/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyDataQueueJob.cs

29 lines
664 B
C#
Raw Normal View History

2025-07-04 09:50:02 +08:00
using MyCode.Project.Services;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyCode.Project.ScheduleTask.Jobs
{
[DisallowConcurrentExecution]
public class AnsyDataQueueJob : IJob
{
private readonly IAnsyDataProcessService _ansyDataProcessService;
public AnsyDataQueueJob(IAnsyDataProcessService ansyDataProcessService)
{
_ansyDataProcessService = ansyDataProcessService;
}
public void Execute(IJobExecutionContext context)
{
_ansyDataProcessService.Execute();
}
}
}