예제 #1
0
        public PerformanceCounterHub()
        {
            var queries = new DefaultCounters().Queries;

            _executor = new PerformanceCounterQueryExecutor(queries);
            _timer    = new Timer(UpdateCounters, null, 2000, 2000);
        }
예제 #2
0
        public IEnumerable <PerformanceCounterResult> Get()
        {
            var counters = new DefaultCounters();
            var executor = new PerformanceCounterQueryExecutor(counters.Queries);

            return(executor.Execute());
        }