Example #1
0
        public void SubscribeToChannels(params string[] channels)
        {
            var multiBytes = redisClient.Subscribe(channels);

            ParseSubscriptionResults(multiBytes);

            while (this.SubscriptionCount > 0)
            {
                multiBytes = redisClient.ReceiveMessages();
                ParseSubscriptionResults(multiBytes);
            }
        }