Ejemplo n.º 1
0
        public LotterEngine(LotteryInfoDto lotteryInfo)
        {
            _lotteryInfo           = lotteryInfo;
            _timeRuleManager       = new TimeRuleManager(_lotteryInfo);
            _lotteryQueryService   = ObjectContainer.Resolve <ILotteryQueryService>();
            _finalDataQueryService = ObjectContainer.Resolve <ILotteryFinalDataQueryService>();
            _typeFinder            = ObjectContainer.Resolve <ITypeFinder>();

            InitializationPerdictor();
        }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 public static bool PeriodIsLottery(this ITimeRuleManager timeRuleManager, int period)
 {
     return(false);
 }