Ejemplo n.º 1
0
 /// <summary>
 /// Delete a directory, retrying the operation if the delete fails.
 /// </summary>
 /// <param name="directory">
 /// The directory to delete.
 /// </param>
 public static void DeleteDirectoryWithRetry(string directory)
 {
     PerformActionWithRetry(
         () =>
     {
         if (EseInteropTestHelper.DirectoryExists(directory))
         {
             EseInteropTestHelper.DirectoryDelete(directory, true);
         }
     });
 }