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); } } }
//string subscribedChannel; public RedisListener(RedisConfiguation config) { _config = config; }
public RedisCacheRevocatonHandler(RedisConfiguation redisConfiguation) { this.redisConfiguation = redisConfiguation; }