30 lines
697 B
C#
30 lines
697 B
C#
using MyCode.Project.Services;
|
|
using MyCode.Project.Services.Implementation;
|
|
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 AnsyLxmDataJob : IJob
|
|
{
|
|
|
|
private readonly ILxmInfraDataService _lxmInfraDataService;
|
|
|
|
public AnsyLxmDataJob(ILxmInfraDataService lxmInfraDataService)
|
|
{
|
|
_lxmInfraDataService = lxmInfraDataService;
|
|
}
|
|
|
|
|
|
public void Execute(IJobExecutionContext context)
|
|
{
|
|
_lxmInfraDataService.AnsyLxmDataIntoMyql();
|
|
}
|
|
}
|
|
}
|