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().SelfManageTask(); } } catch (Exception ex) { Log.DomainInfo("处理自管任务 Error", ex.Message); } } } }