コード例 #1
0
 public WarewolfPerformanceCounterManager(IList <IPerformanceCounter> counters, IList <IResourcePerformanceCounter> resourceCounters, IWarewolfPerformanceCounterRegister register, IPerformanceCounterPersistence perf, IRealPerformanceCounterFactory performanceCounterFactory)
 {
     _counterFactory   = performanceCounterFactory;
     _counters         = counters;
     _perf             = perf;
     _resourceCounters = resourceCounters.Cast <IPerformanceCounter>().ToList();
     EmptyCounter      = new EmptyCounter();
 }
コード例 #2
0
 public WarewolfPerformanceCounterManager(IList <IPerformanceCounter> counters, IList <IResourcePerformanceCounter> resourceCounters, IWarewolfPerformanceCounterRegister register, IPerformanceCounterPersistence perf)
     : this(counters, resourceCounters, register, perf, new PerformanceCounterFactory())
 {
 }