예제 #1
0
 public void ClearCache()
 {
     try {
         _CoverService.ClearCache();
         CacheSize = Helper.MakeNiceSize(_CoverService.CacheSize());
     }
     catch (Exception exc) {
         _Logger.WarnException("Failed to clear cover cache", exc);
     }
     CanClearCache = false;
 }
예제 #2
0
        public async Task ClearCache()
        {
            CanClearCache = false;
            try
            {
                await Task.Run(() => _coverService.ClearCache());

                CacheSize = Helper.MakeNiceSize(_coverService.CacheSize());
            }
            catch (Exception exc)
            {
                _logger.WarnException("Failed to clear cover cache", exc);
            }
            finally
            {
                CanClearCache = true;
            }
        }