public LotterEngine(LotteryInfoDto lotteryInfo) { _lotteryInfo = lotteryInfo; _timeRuleManager = new TimeRuleManager(_lotteryInfo); _lotteryQueryService = ObjectContainer.Resolve <ILotteryQueryService>(); _finalDataQueryService = ObjectContainer.Resolve <ILotteryFinalDataQueryService>(); _typeFinder = ObjectContainer.Resolve <ITypeFinder>(); InitializationPerdictor(); }
protected RunLotteryAbstractJob() { PreInitialize(); LastStart = DateTime.Now; _lotteryQueryService = ObjectContainer.Resolve <ILotteryQueryService>(); _lotteryFinalDataQueryService = ObjectContainer.Resolve <ILotteryFinalDataQueryService>(); _commandService = ObjectContainer.Resolve <ICommandService>(); _lotteryDataQueryService = ObjectContainer.Resolve <ILotteryDataQueryService>(); _lotteryInfo = _lotteryQueryService.GetLotteryInfoByCode(_lotteryCode); _timeRuleManager = new TimeRuleManager(_lotteryInfo); _lotteryFinalData = _lotteryFinalDataQueryService.GetFinalData(_lotteryInfo.Id); _dataUpdateItems = DataUpdateContext.GetDataUpdateItems(_lotteryInfo.Id); _isStart = true; PostinItialize(); }
public static bool PeriodIsLottery(this ITimeRuleManager timeRuleManager, int period) { return(false); }