示例#1
0
 public PerformanceMetricsCollector(
     IProcessorMetricsCollector processorMetricsCollector,
     IMemoryMetricsCollector memoryMetricsCollector,
     INetworkMetricsCollector networkMetricsCollector,
     IMetricsDeliverer MetricsDeliverer)
 {
     _processorMetricsCollector = processorMetricsCollector;
     _memoryMetricsCollector    = memoryMetricsCollector;
     _networkMetricsCollector   = networkMetricsCollector;
     _MetricsDeliverer          = MetricsDeliverer;
 }
 public PerformanceMetricsCollector(
     IProcessorMetricsCollector processorMetricsCollector,
     IMemoryMetricsCollector memoryMetricsCollector,
     INetworkMetricsCollector networkMetricsCollector,
     IMetricsDeliverer MetricsDeliverer,
     IOptions <MetricsCollectionOptions> optionsAccessor)
 {
     _processorMetricsCollector = processorMetricsCollector;
     _memoryMetricsCollector    = memoryMetricsCollector;
     _networkMetricsCollector   = networkMetricsCollector;
     _metricsDeliverer          = MetricsDeliverer;
     _captureInterval           = optionsAccessor.Value.CaptureInterval;
 }