예제 #1
0
        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;
        }
예제 #2
0
        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
        }
예제 #3
0
        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
        }