예제 #1
0
 public void PublishAll()
 {
     foreach (var metric in availablePerfMetrics)
     {
         metricsPublisher.Publish(metric);
     }
 }
예제 #2
0
 public Task Publish(string type, params IMetrics[] metrics)
 {
     if (publisher == null)
     {
         throw new NullReferenceException("Publisher has not been initialized");
     }
     return(publisher.Publish(type, metrics));
 }