public TokenValidationHandler() { _commandService = ObjectContainer.Resolve <ICommandService>(); _lotterySession = NullLotterySession.Instance; _userManager = ObjectContainer.Resolve <IUserManager>(); _conLogQueryService = ObjectContainer.Resolve <IConLogQueryService>(); _logger = NullLotteryLogger.Instance; }
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; }
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); } }
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; } }
protected BasePowerChecker(IUserManager userManager) { _userManager = userManager; _lotterySession = NullLotterySession.Instance; }
public AppAuthFilter(string desc) { _desc = desc; _lotterySession = NullLotterySession.Instance; _memberAppService = ObjectContainer.Resolve <IMemberAppService>(); }
public LotteryApiExceptionFilterAttribute() { _logger = ObjectContainer.Resolve <ILoggerFactory>().Create("LotteryApi"); _lotteryApiConfiguration = ObjectContainer.Resolve <ILotteryApiConfiguration>(); _lotterySession = NullLotterySession.Instance; }
protected LotteryBaseAuthorizeFilter() { _logger = ObjectContainer.Resolve <ILoggerFactory>().Create("LotteryApi"); _lotteryApiConfiguration = ObjectContainer.Resolve <ILotteryApiConfiguration>(); _lotterySession = NullLotterySession.Instance; }