private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

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

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

                _disposed = true;
            }
        }