ComplianceServer/oldcode/CoreService/SmsJob/HgSmsSendJob.cs

37 lines
736 B
C#

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