protected bool IsRefreshNeeded()

in src/Amazon.SecretsManager.Extensions.Caching/SecretCacheObject.cs [131:143]


        protected bool IsRefreshNeeded()
        {
            if (refreshNeeded) { return true; }
            if (null == exception) { return false; }

            // If we encountered an exception on the last attempt
            // we do not want to keep retrying without a pause between
            // the refresh attempts.
            //
            // If we have exceeded our backoff time we will refresh
            // the secret now.
            return Environment.TickCount >= nextRetryTime;
        }