internal static void Remount(IADDatabase database, string from) { Exception ex = null; DatabaseTasks.Trace("Database '{0}' is attempting to remount on '{1}'", new object[] { database.Name, from }); try { DatabaseTasks.WaitUntilDatabaseIsNotMounted(database, 5); AmRpcClientHelper.RemountDatabase(database, 0, -1, from); } catch (AmServerException ex2) { DatabaseTasks.Trace("RemountDatabase() failed with {0}", new object[] { ex2 }); ex = ex2; } catch (AmServerTransientException ex3) { DatabaseTasks.Trace("RemountDatabase() failed with {0}", new object[] { ex3 }); ex = ex3; } if (ex != null) { throw new DatabaseRemountFailedException(database.Name, ex.ToString(), ex); } }