public async Task <RedisSubscription> SubscribeAsync(IList <byte[]> channels) { var subscription = new RedisSubscription(_connectionSettings, _encoding, channels); await subscription.SubscribeAsync(); return(subscription); }
public async Task <RedisSubscription> SubscribeAsync(params string[] channels) { var subscription = new RedisSubscription(_connectionSettings, _encoding, channels); await subscription.SubscribeAsync(); return(subscription); }