public NonEscapedString InlineMetric([NotNull] DashboardMetric metric) { if (metric == null) { throw new ArgumentNullException("metric"); } return(RenderPartial(new InlineMetric(metric))); }
public NonEscapedString BlockMetric([NotNull] DashboardMetric metric) { if (metric == null) { throw new ArgumentNullException(nameof(metric)); } return(RenderPartial(new BlockMetric(metric))); }
public static void AddMetric([NotNull] DashboardMetric metric) { if (metric == null) { throw new ArgumentNullException(nameof(metric)); } lock (Metrics) { Metrics[metric.Name] = metric; } }