32 lines
656 B
C#
32 lines
656 B
C#
using Quartz;
|
|
using System;
|
|
|
|
namespace WeChatServerServices.WxDbJob
|
|
{
|
|
public class Wx_DbReadJob : IJob
|
|
{
|
|
static bool isRuning = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
|
|
if (isRuning)
|
|
return;
|
|
isRuning = true;
|
|
try
|
|
{
|
|
new Wx_DbRead().StartRead();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
WX.CRM.Common.LogHelper.Error(string.Concat("Wx_DbReadJob出现错误", e.ToString()));
|
|
}
|
|
finally
|
|
{
|
|
isRuning = false;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|