private static IMetric GetOrRegisterMetric(string entry) { var metric = MetricRepository.GetByName(entry); if (metric == null) { metric = new InMemoryMetric(entry); MetricRepository.Save(metric); } return metric; }
private static IMetric GetOrRegisterMetric(string entry) { var metric = MetricRepository.GetByName(entry); if (metric == null) { metric = new InMemoryMetric(entry); MetricRepository.Save(metric); } return(metric); }