c# Programming Glossary: pcreqspersec
Performance Counter - System.InvalidOperationException: Category does not exist http://stackoverflow.com/questions/8171865/performance-counter-system-invalidoperationexception-category-does-not-exist public class Counters private static PerformanceCounter pcReqsPerSec private const string counterKey Requests_Sec public static object.. static object RequestsPerSecond get lock counterKey if pcReqsPerSec null return pcReqsPerSec.NextValue .ToString N2 EXCEPTION .. get lock counterKey if pcReqsPerSec null return pcReqsPerSec.NextValue .ToString N2 EXCEPTION else return 0 internal..
|