示例#1
0
 /// <summary>
 /// Delete cache file
 /// </summary>
 public void Clear(bool ignoreExceptions = true)
 {
     try
     {
         _logger.LogInformation("Clearing the cache file");
         CacheAccessor.Clear();
     }
     catch (Exception e)
     {
         _logger.LogError($"An exception was encountered while clearing data from {nameof(MsalCacheStorage)} : {e}");
         if (!ignoreExceptions)
         {
             throw;
         }
     }
 }