99
This commit is contained in:
29
Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmDataJob.cs
Normal file
29
Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmDataJob.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user