This class is an encapsulation of the Windows Performance Counters. Use the static Increment/Decrement methods combined with the Counters enum to do your counting. All public methods are thread safe.
[Obsolete("This is no longer in use", true)] public class PerformanceMonitoring
Performance counter categories cannot be edited, i.e., you cannot add a new counter to an already existing category. At the same time, enumerating all counters to see if they match the current definitions in the code takes a loooong time, there is some kind of timeout or hangup in there.
Therefore, you must set the CreateCounters property to true in the Diagnostics section of the config file, and run once to re-create all categories, if you run for the first time or have changed/added to the counter definitions.
To add a new counter, you need to do several things: 1) Add a new member to the