Example #1
0
        private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _customGrantTokenClient.Dispose();
                _disposed = true;
            }
        }
Example #2
0
        private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _customGrantTokenClient.Dispose();
                if (_cache is IDisposable disposableCache)
                {
                    disposableCache.Dispose();
                }

                _disposed = true;
            }
        }