public GetLevelInfoCommandHandler(ILevelInfoRepository rep, IAccountRedisRepository redis, LevelManager levelManager) { _levelRepository = rep; _redis = redis; _levelManager = levelManager; }
public AccountEventHandler(IAccountInfoRepository rep, IAccountRedisRepository redis, IBusControl mqBus, IMapper mapper) { _accountRepository = rep; _redis = redis; _mqBus = mqBus; _mapper = mapper; }
public GetAccountCommandHandler(IAccountInfoRepository rep, IUserIdGenRepository genRepository, IAccountRedisRepository redis, IMediatorHandler bus, IBusControl mqBus, IMapper mapper, IRequestClient <GetMoneyMqCommand> moneyClient, IRequestClient <GetFriendInfoMqCommand> friednClient) { _accountRepository = rep; _genRepository = genRepository; _redis = redis; _bus = bus; _mqBus = mqBus; _mapper = mapper; _moneyClient = moneyClient; _friednClient = friednClient; }
public AccountCommandHandler(IAccountInfoRepository rep, IUserIdGenRepository genRepository, IAccountRedisRepository redis, IMediatorHandler bus, IMapper mapper, IRequestClient <GetMoneyMqCommand> moneyClient, WSHostManager hostManager, InitRewardInfo initRewardInfo, IRequestClient <AddMoneyMqCommand> moneyAddClient) { _accountRepository = rep; _genRepository = genRepository; _redis = redis; _bus = bus; _mapper = mapper; _moneyClient = moneyClient; _hostManager = hostManager; _initRewardInfo = initRewardInfo; _moneyAddClient = moneyAddClient; }
public static async Task <long?> GetIdByPlatForm(string platformId, IAccountInfoRepository _accountRepository, IAccountRedisRepository _redis) { var checkInfo = await _redis.GetLoginCheckInfo(platformId); AccountInfo accountInfo = null; if (checkInfo == null) { accountInfo = await _accountRepository.GetByPlatform(platformId); if (accountInfo != null) { await _redis.SetLoginCheckInfo(platformId, accountInfo); return(accountInfo.Id); } return(null); } return(checkInfo.Id); }
public static async Task <AccountInfo> GetAccountInfo(long id, IAccountInfoRepository _accountRepository, IAccountRedisRepository _redis) { var accountInfo = await _redis.GetAccountInfo(id); if (accountInfo == null) { accountInfo = await _accountRepository.GetByIdAsync(id); if (accountInfo != null) { await _redis.SetAccountInfo(accountInfo); } } return(accountInfo); }
public GetGameInfoCommandHandler(IGameInfoRepository rep, IAccountRedisRepository redis) { _gameRepository = rep; _redis = redis; }