Esempio n. 1
0
        public override Dictionary <string, TopicStats> GetTopicStats(string cacheId, bool defaultTopicStats = false)
        {
            Dictionary <string, TopicStats> topicStatList = new Dictionary <string, TopicStats>();

            if (cacheId == null)
            {
                throw new ArgumentNullException("cacheId");
            }
            if (cacheInfo != null)
            {
                InstrumentCache cache = cacheInfo.Cache;
                if (cache != null && !string.IsNullOrEmpty(cacheId) && cache.Name.ToLower().Equals(cacheId.ToLower()))
                {
                    topicStatList = cache.GetTopicsStats(defaultTopicStats);
                }
            }
            return(topicStatList);
        }