分支自 SuZhouGuanHong/TaiYuanTaiZhong

PCS
dengjunjie
2024-01-16 e3a2ea164fa3ccde6a1dfc24e99d4eb9b065f69b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_WCS.Jobs;
using WIDESEA_WCS.JobsPart.Common;
using WIDESEA_WCS.WCSClient;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database;
 
namespace WIDESEA_WCS
{
    [DisallowConcurrentExecution]
    public class AutoTaskJob : JobBase, IJob
    {
        LocationCreation Creation = new LocationCreation();
        public Task Execute(IJobExecutionContext context)
        {
            try
            {
                ExecuteJob(context, DoAction);
            }
            catch { }
            return Task.CompletedTask;
        }
 
        private void DoAction(IJobExecutionContext context)
        {
            //throw new NotImplementedException();
            Creation.HCJCreation();
        }
    }
}