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
| using System;
| using System.Collections.Generic;
| using System.Text;
| using System.Threading.Tasks;
| using ZY.Mes.Service;
|
| namespace ZY.Mes.Job
| {
| public class JobControl
| {
| private readonly ITestService _testService;
| Task Task1;
| public JobControl(ITestService testService)
| {
| _testService = testService;
| }
| public void JobInit()
| {
| if(Task1==null)
| {
| Task1 = new Task(_testService.PopTestQue);
| Task1.Start();
| }
| }
| }
| }
|
|