Esempio n. 1
0
 static void WaitForUserExit(RedisConfiguation config)
 {
     for (var key = Console.ReadKey().KeyChar; key != 'x'; key = Console.ReadKey().KeyChar)
     {
         if (key == 'u')
         {
             using (var client = new RedisClient(config.RedisHost, config.RedisPort))
                 client.PublishMessage(config.RedisMessageChannel, config.RedisMessageMustContain);
         }
     }
 }
Esempio n. 2
0
        //string subscribedChannel;

        public RedisListener(RedisConfiguation config)
        {
            _config = config;
        }
 public RedisCacheRevocatonHandler(RedisConfiguation redisConfiguation)
 {
     this.redisConfiguation = redisConfiguation;
 }