TG.WXCRM.V4/CRMServices/TS/TSBatchMsgSendJob.cs

33 lines
850 B
C#

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