Esempio n. 1
0
        public override double GetCounterValue(string cacheId, string counterName, string category, bool replica = false)
        {
            double value = 0.0;

            if (cacheInfo != null)
            {
                InstrumentCache cache = cacheInfo.Cache;
                if (cache != null && !string.IsNullOrEmpty(cacheId) && cache.Name.ToLower().Equals(cacheId.ToLower()))
                {
                    value = cache.GetCounterValue(counterName, replica, category);
                }
            }
            return(value);
        }