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();
}
}