Ejemplo n.º 1
0
        public AccountController(ICommandBus commandBus, RedisReadClient redisReadClient)
        {
            this.commandBus      = commandBus;
            this.redisReadClient = redisReadClient;

            this.UserDevicePrefixNamespace   = "UserDevice";
            this.RefreshTokenPrefixNamespace = "Ticket";
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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
        }
Ejemplo n.º 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
        }
Ejemplo n.º 5
0
 public RedisRefreshTokenService(RedisReadClient redisReadClient)
 {
     this.redisReadClient             = redisReadClient;
     this.RefreshTokenPrefixNamespace = "Ticket";
 }
Ejemplo n.º 6
0
 public RedisDeviceService(RedisReadClient redisReadClient)
 {
     this.redisReadClient           = redisReadClient;
     this.UserDevicePrefixNamespace = "UserDevice";
 }