| | |
| | | namespace WIDESEAWCS_Tasks |
| | | { |
| | | [DisallowConcurrentExecution] |
| | | public class CommonConveyorLineJob : JobBase, IJob |
| | | public class CommonConveyorLineJob : JobBase, IJob, IDisposable |
| | | { |
| | | private readonly ITaskService _taskService; |
| | | private readonly ITaskExecuteDetailService _taskExecuteDetailService; |
| | |
| | | CommonConveyorLine conveyorLine = (CommonConveyorLine)context.JobDetail.JobDataMap.Get("JobParams"); |
| | | if (conveyorLine != null) |
| | | { |
| | | short[] values = conveyorLine.Communicator.Read<short>("DB2.0", 20); |
| | | |
| | | //bool result = conveyorLine.Communicator.Write("DB1.0", "AAABBB"); |
| | | //string testVal = conveyorLine.Communicator.Read<string>("DB1.0"); |
| | | |
| | |
| | | Console.Out.WriteLine(content.Serialize()); |
| | | } |
| | | } |
| | | |
| | | public void Dispose() |
| | | { |
| | | GC.SuppressFinalize(this); |
| | | } |
| | | } |
| | | } |