using Business.KJH; using Business.Util; using Cache; using Common; using Quartz; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JobService.Job { [DisallowConcurrentExecution] [PersistJobDataAfterExecution] public class DFCJob : IJob { public void Execute(IJobExecutionContext context) { try { var typelist = LottryDataHandle.GetLotteryCode(); var Runlist = typelist.Where(w => w.lotteryCode.Contains("DF")).ToList(); jobServiceBLL bll = new Business.KJH.jobServiceBLL(); var list = bll.GetLotteryListAsync(Runlist); AppCtrl.GetObj().GetLotteryCache().SetLotteryCache(list); } catch (Exception ee) { LogHelper.Error(typeof(QGCJob), ee.Message + ":QTJob"); throw; } } } }