예제 #1
0
        public AccountController(ICommandBus commandBus, RedisReadClient redisReadClient)
        {
            this.commandBus      = commandBus;
            this.redisReadClient = redisReadClient;

            this.UserDevicePrefixNamespace   = "UserDevice";
            this.RefreshTokenPrefixNamespace = "Ticket";
        }
예제 #2
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;
        }
예제 #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
        }
예제 #4
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
        }
예제 #5
0
 public RedisRefreshTokenService(RedisReadClient redisReadClient)
 {
     this.redisReadClient             = redisReadClient;
     this.RefreshTokenPrefixNamespace = "Ticket";
 }
예제 #6
0
 public RedisDeviceService(RedisReadClient redisReadClient)
 {
     this.redisReadClient           = redisReadClient;
     this.UserDevicePrefixNamespace = "UserDevice";
 }