public AccountController(ICommandBus commandBus, RedisReadClient redisReadClient) { this.commandBus = commandBus; this.redisReadClient = redisReadClient; this.UserDevicePrefixNamespace = "UserDevice"; this.RefreshTokenPrefixNamespace = "Ticket"; }
public OAuthViewGenerator(RedisWriteClient redisWriteClient, RedisReadClient redisReadClient, IEventBus eventBus, IUserDeviceRepository userDeviceRepository) { this.eventBus = eventBus; this.redisWriteClient = redisWriteClient; this.redisReadClient = redisReadClient; this.RefreshTokenPrefixNamespace = "Ticket"; this.UserDevicePrefixNamespace = "UserDevice"; this.userDeviceRepository = userDeviceRepository; }
public RedisFixture() { this.redisWriteClient = new RedisWriteClient(this.RedisCacheSetting); this.redisReadClient = new RedisReadClient(this.RedisCacheSetting); #region Setup this.redisWriteClient.Remove(newKey); this.redisWriteClient.Remove(existKey); prepareValue = Guid.NewGuid().ToString(); this.redisWriteClient.Set(existKey, prepareValue); this.redisWriteClient.Set(existKey + "_1", prepareValue); this.redisWriteClient.Set(existKey + "_2", prepareValue); this.redisWriteClient.Set(existKey + "_3", prepareValue); this.redisWriteClient.Set(existKey + "_4", prepareValue); this.redisWriteClient.Set(existKey + "_5", prepareValue); this.redisWriteClient.Set(existKey + "_6", prepareValue); this.redisWriteClient.Set(existKey + "_7", prepareValue); #endregion }
public RedisRefreshTokenService(RedisReadClient redisReadClient) { this.redisReadClient = redisReadClient; this.RefreshTokenPrefixNamespace = "Ticket"; }
public RedisDeviceService(RedisReadClient redisReadClient) { this.redisReadClient = redisReadClient; this.UserDevicePrefixNamespace = "UserDevice"; }