29 lines
664 B
C#
29 lines
664 B
C#
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();
|
|
}
|
|
}
|
|
}
|