Amazon.Runtime.Internal.CapacityManager.TryGetRetryCapacity C# (CSharp) 메소드

TryGetRetryCapacity() 개인적인 메소드

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