Пример #1
0
 public UserInfoController(ICommandService commandService,
                           IUserInfoService userInfoService,
                           ILotteryQueryService lotteryQueryService) : base(commandService)
 {
     _userInfoService     = userInfoService;
     _lotteryQueryService = lotteryQueryService;
 }
Пример #2
0
        public LotterEngine(LotteryInfoDto lotteryInfo)
        {
            _lotteryInfo           = lotteryInfo;
            _timeRuleManager       = new TimeRuleManager(_lotteryInfo);
            _lotteryQueryService   = ObjectContainer.Resolve <ILotteryQueryService>();
            _finalDataQueryService = ObjectContainer.Resolve <ILotteryFinalDataQueryService>();
            _typeFinder            = ObjectContainer.Resolve <ITypeFinder>();

            InitializationPerdictor();
        }
Пример #3
0
 public JobFactory()
 {
     _scheduleTaskQueryService       = ObjectContainer.Resolve <IScheduleTaskQueryService>();
     _lotteryQueryService            = ObjectContainer.Resolve <ILotteryQueryService>();
     _normConfigQueryService         = ObjectContainer.Resolve <INormConfigQueryService>();
     _lotteryPredictDataService      = ObjectContainer.Resolve <ILotteryPredictDataService>();
     _lotteryPredictDataQueryService = ObjectContainer.Resolve <ILotteryPredictDataQueryService>();
     _commandService = ObjectContainer.Resolve <ICommandService>();
     _scheduleTasks  = _scheduleTaskQueryService.GetAllScheduleTaskInfos();
     InitScheduleJob();
 }
Пример #4
0
 public SellAppService(ISellQueryService sellQueryService,
                       IActivityQueryService activityQueryService,
                       ILotteryQueryService lotteryQueryService,
                       ISellCallBackService sellCallBackService)
 {
     _sellQueryService     = sellQueryService;
     _activityQueryService = activityQueryService;
     _lotteryQueryService  = lotteryQueryService;
     _sellCallBackService  = sellCallBackService;
     _lotterySession       = NullLotterySession.Instance;
     _httpClient           = new HttpClient();
     _logger = NullLotteryLogger.Instance;
 }
Пример #5
0
 public LotteryPredictDataService(ILotteryFinalDataQueryService lotteryFinalDataQueryService,
                                  ILotteryQueryService lotteryQueryService,
                                  ILotteryPredictDataQueryService lotteryPredictDataQueryService,
                                  IPlanInfoQueryService planInfoQueryService,
                                  ILotteryDataQueryService lotteryDataQueryService)
 {
     _lotteryFinalDataQueryService   = lotteryFinalDataQueryService;
     _lotteryQueryService            = lotteryQueryService;
     _lotteryPredictDataQueryService = lotteryPredictDataQueryService;
     _planInfoQueryService           = planInfoQueryService;
     _lotteryDataQueryService        = lotteryDataQueryService;
     _logger = NullLotteryLogger.Instance;
 }
Пример #6
0
        protected BaseApiController(ICommandService commandService)
        {
            _commandService      = commandService;
            _lotteryQueryService = ObjectContainer.Resolve <ILotteryQueryService>();
            _lotterySession      = NullLotterySession.Instance;
            _logger           = NullLotteryLogger.Instance;
            _memberAppService = ObjectContainer.Resolve <IMemberAppService>();

            if (_lotterySession.SystemType == SystemType.App)
            {
                InitLotteryInfo();
                _userMemberRank =
                    _memberAppService.GetUserMemRank(_lotterySession.UserId, _lotterySession.SystemTypeId);
            }
        }
Пример #7
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();
 }
Пример #8
0
 public LotteryController(ILotteryDataAppService lotteryDataAppService,
                          ICommandService commandService,
                          INormConfigQueryService normConfigQueryService,
                          ILotteryPredictDataQueryService lotteryPredictDataQueryService,
                          IPlanTrackAppService planTrackAppService,
                          ILotteryQueryService lotteryQueryService,
                          ICacheManager cacheManager)
     : base(commandService)
 {
     _lotteryDataAppService          = lotteryDataAppService;
     _normConfigQueryService         = normConfigQueryService;
     _lotteryPredictDataQueryService = lotteryPredictDataQueryService;
     _planTrackAppService            = planTrackAppService;
     _lotteryQueryService            = lotteryQueryService;
     _cacheManager = cacheManager;
 }
Пример #9
0
 public LotteryDataAppService(
     ILotteryDataQueryService lotteryDataQueryService,
     INormConfigQueryService normConfigQueryService,
     ILotteryPredictDataService lotteryPredictDataService,
     ILotteryFinalDataQueryService lotteryFinalDataQueryService,
     ILotteryQueryService lotteryQueryService,
     IPlanInfoQueryService planInfoQueryService,
     IPredictService predictService)
 {
     _lotteryDataQueryService      = lotteryDataQueryService;
     _normConfigQueryService       = normConfigQueryService;
     _lotteryPredictDataService    = lotteryPredictDataService;
     _lotteryFinalDataQueryService = lotteryFinalDataQueryService;
     _lotteryQueryService          = lotteryQueryService;
     _planInfoQueryService         = planInfoQueryService;
     _predictService = predictService;
 }
Пример #10
0
 public AccountController(IUserManager userManager,
                          ICommandService commandService,
                          UserInfoInputValidator userInfoInputValidator,
                          UserProfileInputValidator userProfileInputValidator,
                          ILotteryQueryService lotteryQueryService,
                          IConLogQueryService conLogQueryService,
                          IIdentifyCodeAppService identifyCodeAppService,
                          IPointQueryService pointQueryService) : base(commandService)
 {
     _userManager               = userManager;
     _userInfoInputValidator    = userInfoInputValidator;
     _userProfileInputValidator = userProfileInputValidator;
     _lotteryQueryService       = lotteryQueryService;
     _conLogQueryService        = conLogQueryService;
     _identifyCodeAppService    = identifyCodeAppService;
     _pointQueryService         = pointQueryService;
 }
Пример #11
0
 public NormController(ICommandService commandService,
                       INormConfigAppService normConfigAppService,
                       UserNormConfigInputValidator userNormDefaultConfigInputValidator,
                       IUserNormDefaultConfigService userNormDefaultConfigService,
                       INormPlanConfigQueryService normPlanConfigQueryService,
                       ILotteryQueryService lotteryQueryService,
                       IPlanInfoQueryService planInfoQueryService,
                       ICacheManager cacheManager)
     : base(commandService)
 {
     _normConfigAppService = normConfigAppService;
     _userNormDefaultConfigInputValidator = userNormDefaultConfigInputValidator;
     _userNormDefaultConfigService        = userNormDefaultConfigService;
     _normPlanConfigQueryService          = normPlanConfigQueryService;
     _lotteryQueryService  = lotteryQueryService;
     _planInfoQueryService = planInfoQueryService;
     _cacheManager         = cacheManager;
 }
Пример #12
0
 public LotteryPredictTableService(ILotteryQueryService lotteryQueryService, IPlanInfoQueryService planInfoQueryService, ICommandService commandService)
 {
     _lotteryQueryService  = lotteryQueryService;
     _planInfoQueryService = planInfoQueryService;
     _commandService       = commandService;
 }
Пример #13
0
 static EngineContext()
 {
     _lotteryQueryService = ObjectContainer.Resolve <ILotteryQueryService>();
     _lotteryInfos        = _lotteryQueryService.GetAllLotteryInfo();
 }