Exemple #1
0
        public IEnumerable <PerformanceCounterResult> Get()
        {
            var counters = new DefaultCounters();
            var executor = new PerformanceCounterQueryExecutor(counters.Queries);

            return(executor.Execute());
        }
Exemple #2
0
        private void UpdateCounters(object state)
        {
            var results = _executor.Execute();

            CounterClients.updateCounters(results);
        }