Bloom.ImageProcessing.RuntimeImageProcessor.TryToDeleteCachedImages C# (CSharp) Method

TryToDeleteCachedImages() private method

private TryToDeleteCachedImages ( ) : void
return void
        private void TryToDeleteCachedImages()
        {
            lock (this)
            {
                foreach(var path in _originalPathToProcessedVersionPath.Values)
                {
                    try
                    {
                        if (RobustFile.Exists(path))
                        {
                            RobustFile.Delete(path);
                            Debug.WriteLine("RuntimeImageProcessor Successfully deleted: " + path);
                        }
                    }
                    catch (Exception e)
                    {
                        Debug.WriteLine("RuntimeImageProcessor Dispose(): " + e.Message);
                    }
                }
                _originalPathToProcessedVersionPath.Clear();
            }
        }