Exemplo n.º 1
0
 public TokenValidationHandler()
 {
     _commandService     = ObjectContainer.Resolve <ICommandService>();
     _lotterySession     = NullLotterySession.Instance;
     _userManager        = ObjectContainer.Resolve <IUserManager>();
     _conLogQueryService = ObjectContainer.Resolve <IConLogQueryService>();
     _logger             = NullLotteryLogger.Instance;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
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);
            }
        }
Exemplo n.º 4
0
        public AuthorizationHelper()
        {
            _lotterySession = NullLotterySession.Instance;
            switch (_lotterySession.SystemType)
            {
            case SystemType.BackOffice:
                _powerChecker = ObjectContainer.Resolve <BackOfficePowerChecker>();
                break;

            case SystemType.App:
                _powerChecker = ObjectContainer.Resolve <AppPowerChecker>();
                break;

            case SystemType.OfficialWebsite:
                _powerChecker = ObjectContainer.Resolve <OfficialWebsitePowerChecker>();
                break;
            }
        }
Exemplo n.º 5
0
 protected BasePowerChecker(IUserManager userManager)
 {
     _userManager    = userManager;
     _lotterySession = NullLotterySession.Instance;
 }
Exemplo n.º 6
0
 public AppAuthFilter(string desc)
 {
     _desc             = desc;
     _lotterySession   = NullLotterySession.Instance;
     _memberAppService = ObjectContainer.Resolve <IMemberAppService>();
 }
Exemplo n.º 7
0
 public LotteryApiExceptionFilterAttribute()
 {
     _logger = ObjectContainer.Resolve <ILoggerFactory>().Create("LotteryApi");
     _lotteryApiConfiguration = ObjectContainer.Resolve <ILotteryApiConfiguration>();
     _lotterySession          = NullLotterySession.Instance;
 }
Exemplo n.º 8
0
 protected LotteryBaseAuthorizeFilter()
 {
     _logger = ObjectContainer.Resolve <ILoggerFactory>().Create("LotteryApi");
     _lotteryApiConfiguration = ObjectContainer.Resolve <ILotteryApiConfiguration>();
     _lotterySession          = NullLotterySession.Instance;
 }