コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }