Amazon.KinesisTap.Windows/PerformanceCounterSource.cs
/// <summary>
/// Number of instances could change since we use wildcard for instances
/// </summary>
Number of instances could change since we use wildcard for instances
Number of instances could change since we use wildcard for instances
private void RefreshInstances()
        {
            var multipleInstanceCategoryConfigs = _categoryInfos
                .Where(ci => _multipleInstanceCategoryCounters.ContainsKey(ci.CategoryName))
                .ToList();
            foreach(var categoryInfo in multipleInstanceCategoryConfigs)
            {
                string categoryName = categoryInfo.CategoryName;
                var performanceCounterCategory = new PerformanceCounterCategory(categoryName);
                (HashSet<string> counterNames, IList<Regex> counterPatterns) =
                    GetNamesAndPatterns(categoryInfo.CounterFilters);
                LoadInstancesForCategory(categoryInfo, 
                    categoryInfo.CategoryName, 
                    performanceCounterCategory, 
                    counterNames, 
                    counterPatterns, 
                    false);
            }
        }
private void RefreshInstances ( ) { var multipleInstanceCategoryConfigs = _categoryInfos . Where ( ci => _multipleInstanceCategoryCounters . ContainsKey ( ci . CategoryName ) ) . ToList ( ) ; foreach ( var categoryInfo in multipleInstanceCategoryConfigs ) { string categoryName = categoryInfo . CategoryName ; var performanceCounterCategory = new PerformanceCounterCategory ( categoryName ) ; ( HashSet < string > counterNames , IList < Regex > counterPatterns ) = GetNamesAndPatterns ( categoryInfo . CounterFilters ) ; LoadInstancesForCategory ( categoryInfo , categoryInfo . CategoryName , performanceCounterCategory , counterNames , counterPatterns , false ) ; } }
Number of instances could change since we use wildcard for instances
Number of instances could change since we use wildcard for instances
//Only need to do this this for multiple-instance categories