using Quartz; using System; namespace WX.CRM.CRMServices.TS { /// /// /// public class TSCMDSendJob : IJob { static bool isRuning = false; public void Execute(JobExecutionContext context) { if (isRuning) return; isRuning = true; try { //LogHelper.Info("-------------TSCMDSend,推送CMD指令到手机-------------"); new TSCMDSend().StartPush(); } catch (Exception e) { WX.CRM.Common.LogHelper.Error("TSSendResJob: " + e.ToString()); } finally { //LogHelper.Info("-------------TSCMDSend,推送CMD指令到手机end-------------"); isRuning = false; } } } }