public PerformanceCounterHub() { var queries = new DefaultCounters().Queries; _executor = new PerformanceCounterQueryExecutor(queries); _timer = new Timer(UpdateCounters, null, 2000, 2000); }
public IEnumerable <PerformanceCounterResult> Get() { var counters = new DefaultCounters(); var executor = new PerformanceCounterQueryExecutor(counters.Queries); return(executor.Execute()); }