private void UpdateActiveConnectionCount(int change) { _metricRepository.UpdateMetric( new Uri(_target), MetricType.ActiveConnection, m => new ActiveConnectionMetric(m.Value + change)); }