private void updateSyntheticCounters(List <string> sfxCounters) { foreach (var pathElement in _handler.GetPathElements(sfxCounters)) { Update updateFunc; if (_sfxCountersUpdateMethods.TryGetValue(pathElement.CounterName, out updateFunc)) { updateFunc(pathElement); } } }
public void GetMoo() { PdhPathHandler helper = new PdhPathHandler(); foreach (PdhCounterPathElement element in helper.GetPathElements(new string[] { "\\PhysicalDisk(*)\\Avg. Disk sec/Write", "\\Paging File(*)\\% Usage" })) { System.Console.WriteLine(string.Format("moo: {0}", element.ToString())); } }