private bool TryGetRetryCapacity(string key, out RetryCapacity value) { _rwlock.EnterReadLock(); try { if (_serviceUrlToCapacityMap.TryGetValue(key, out value)) { return true; } return false; } finally { _rwlock.ExitReadLock(); } }