コード例 #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));
 }