| | |
| | | [DisallowConcurrentExecution] |
| | | public class AutoTaskJob : JobBase, IJob |
| | | { |
| | | LocationCreation Creation = new LocationCreation(); |
| | | /// <summary> |
| | | /// 鑷姩浠诲姟 |
| | | /// </summary> |
| | | Createplcinfodetail Creation = new Createplcinfodetail(); |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | try |
| | | { |
| | | ExecuteJob(context, DoAction); |
| | | //ExecuteJob(context, DoAction); |
| | | } |
| | | catch { } |
| | | return Task.CompletedTask; |
| | |
| | | private void DoAction(IJobExecutionContext context) |
| | | { |
| | | //throw new NotImplementedException(); |
| | | Creation.HCJCreation(); |
| | | //Creation.HCJCreation(); |
| | | Creation.PLCinfodetail(); |
| | | |
| | | } |
| | | } |
| | | } |