/// <inheritdoc cref="IConsumer{TKey,TValue}.Subscribe(IEnumerable{string})" /> public void Subscribe(IEnumerable <string> topics) { var topicsList = Check.NotNull(topics, nameof(topics)).AsReadOnlyList(); Check.HasNoNullsOrEmpties(topicsList, nameof(topics)); lock (Subscription) { Subscription.Clear(); Subscription.AddRange(topicsList); Subscription.ForEach(topic => _topics[topic].Subscribe(this)); } }