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