private TopicSearchResult SearchCacheForTopics(IEnumerable <string> topics) { var result = new TopicSearchResult(); foreach (var topic in topics) { var cachedTopic = GetCachedTopic(topic); if (cachedTopic == null) { result.Missing.Add(topic); } else { result.Topics.Add(cachedTopic); } } return(result); }
private TopicSearchResult SearchCacheForTopics(IEnumerable<string> topics) { var result = new TopicSearchResult(); foreach (var topic in topics) { var cachedTopic = GetCachedTopic(topic); if (cachedTopic == null) result.Missing.Add(topic); else result.Topics.Add(cachedTopic); } return result; }