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
| using HH.WMS.BLL;
| using HH.WMS.BLL.Pda;
| using HH.WMS.Common;
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Timers;
| using System.Web;
|
| namespace HH.WMS.WebApi.Extension
| {
| public class ExecSelfManageTask : IExecuteThreadTimed
| {
| private static object locko = new object();
| public void Run(object source, ElapsedEventArgs elapsedEventArgs)
| {
| try
| { //防止Timer重入
| lock (locko)
| {
| BLLCreator.Create<ZCBLL>().SelfManageTask();
| }
| }
| catch (Exception ex)
| {
| Log.DomainInfo("处理自管任务 Error", ex.Message);
| }
| }
| }
| }
|
|