示例#1
0
 public NonEscapedString InlineMetric([NotNull] DashboardMetric metric)
 {
     if (metric == null)
     {
         throw new ArgumentNullException("metric");
     }
     return(RenderPartial(new InlineMetric(metric)));
 }
示例#2
0
 public NonEscapedString BlockMetric([NotNull] DashboardMetric metric)
 {
     if (metric == null)
     {
         throw new ArgumentNullException(nameof(metric));
     }
     return(RenderPartial(new BlockMetric(metric)));
 }
示例#3
0
        public static void AddMetric([NotNull] DashboardMetric metric)
        {
            if (metric == null)
            {
                throw new ArgumentNullException(nameof(metric));
            }

            lock (Metrics)
            {
                Metrics[metric.Name] = metric;
            }
        }