qinchulong
2025-03-29 039a4a5433e7f80adc88b491b549e5d9486e4f9a
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
35
36
37
38
39
using Quartz;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Utilities;
using WIDESEA_WCS.Jobs;
using WIDESEA_WCS.SchedulerExecute.AGV;
 
namespace WIDESEA_WCS
{
    [DisallowConcurrentExecution]
    public class ToMesggeThreeJob : JobBase, IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            try
            {
                //return Task.Run(() =>
                //{
                    
                //});
                var executeLog = ExecuteJob(context, () => Run(context));
            }
            catch (Exception)
            {
                
            }
            return Task.FromResult(string.Empty);
        }
        public string Run(IJobExecutionContext context)
        {
            //三楼的先不开,也还没有用
            //ThreadHelper.TaskThread(AGVSchedulerExecute.AgvAndEquiWorkThree);
           AGVSchedulerExecute.AgvAndEquiWorkThree();
            return "";
        }
    }
}