private void updateSyntheticCounters(List <string> sfxCounters)
 {
     foreach (var pathElement in _handler.GetPathElements(sfxCounters))
     {
         Update updateFunc;
         if (_sfxCountersUpdateMethods.TryGetValue(pathElement.CounterName, out updateFunc))
         {
             updateFunc(pathElement);
         }
     }
 }
Ejemplo n.º 2
0
        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()));
            }
        }