using Quartz; using System; using WX.CRM.Common; namespace CRM.Core.CoreService.SmsJob { public class SmsSendJob : IJob { #region IJob static bool bRunning = false; public void Execute(JobExecutionContext context) { if (bRunning) return; bRunning = true; try { new SmsSendExc().Send(); } catch (Exception e) { LogHelper.Error(e); } finally { bRunning = false; } } #endregion private void execSms() { LogHelper.Info("execSms"); } } }