11
This commit is contained in:
27
Reportapi/MyCode.Project.ScheduleTask/Jobs/AddWMSOrderJob.cs
Normal file
27
Reportapi/MyCode.Project.ScheduleTask/Jobs/AddWMSOrderJob.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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 AddWMSOrderJob : IJob
|
||||
{
|
||||
|
||||
private IWMSService _wMSService;
|
||||
public AddWMSOrderJob(IWMSService wMSService)
|
||||
{
|
||||
_wMSService = wMSService;
|
||||
}
|
||||
|
||||
|
||||
public void Execute(IJobExecutionContext context)
|
||||
{
|
||||
_wMSService.AddWMSTask();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user