示例#1
0
        public async Task <RedisSubscription> SubscribeAsync(IList <byte[]> channels)
        {
            var subscription = new RedisSubscription(_connectionSettings, _encoding, channels);
            await subscription.SubscribeAsync();

            return(subscription);
        }
示例#2
0
        public async Task <RedisSubscription> SubscribeAsync(params string[] channels)
        {
            var subscription = new RedisSubscription(_connectionSettings, _encoding, channels);
            await subscription.SubscribeAsync();

            return(subscription);
        }