// Token: 0x0600046B RID: 1131 RVA: 0x00017C6C File Offset: 0x00015E6C public override RpcErrorExceptionInfo RemountDatabase(Guid guid, int mountFlags, int mountDialOverride, string fromServer) { AmTrace.Debug("Remounting database: {0} flags: {1} mountdialoverride: {2} fromServer: {3}", new object[] { guid, mountFlags, mountDialOverride, fromServer }); if (ActiveManagerUtil.IsNullEncoded(fromServer)) { fromServer = null; } return(AmRpcExceptionWrapper.Instance.RunRpcServerOperation(delegate() { AmDbActionCode actionCode = new AmDbActionCode(AmDbActionInitiator.Automatic, AmDbActionReason.FailureItem, AmDbActionCategory.Remount); AmRpcServer.m_amInstance.RemountDatabase(guid, (MountFlags)mountFlags, (DatabaseMountDialOverride)mountDialOverride, new AmServerName(fromServer), actionCode); })); }
// Token: 0x0600045F RID: 1119 RVA: 0x000173AC File Offset: 0x000155AC public override RpcErrorExceptionInfo MoveDatabaseEx(Guid guid, int mountFlags, int dismountFlags, int mountDialOverride, string fromServer, string targetServerFqdn, bool tryOtherHealthyServers, int skipValidationChecks, int iActionCode, string moveComment, ref AmDatabaseMoveResult databaseMoveResult) { AmTrace.Debug("Moving database: {0} flags: {1} mountdialoverride: {2} targetserver: {3}", new object[] { guid, mountFlags, mountDialOverride, targetServerFqdn }); if (ActiveManagerUtil.IsNullEncoded(fromServer)) { fromServer = null; } if (ActiveManagerUtil.IsNullEncoded(targetServerFqdn)) { targetServerFqdn = null; } AmDatabaseMoveResult tempMoveResult = null; databaseMoveResult = null; RpcErrorExceptionInfo result = AmRpcExceptionWrapper.Instance.RunRpcServerOperation(delegate() { AmDbActionCode actionCode; if (iActionCode == 4) { actionCode = new AmDbActionCode(AmDbActionInitiator.Admin, AmDbActionReason.Cmdlet, AmDbActionCategory.Move); } else if (iActionCode == 7) { actionCode = new AmDbActionCode(AmDbActionInitiator.Automatic, AmDbActionReason.FailureItem, AmDbActionCategory.Move); } else { actionCode = new AmDbActionCode(iActionCode); } AmRpcServer.m_amInstance.MoveDatabase(guid, (MountFlags)mountFlags, (UnmountFlags)dismountFlags, (DatabaseMountDialOverride)mountDialOverride, new AmServerName(fromServer), new AmServerName(targetServerFqdn), tryOtherHealthyServers, (AmBcsSkipFlags)skipValidationChecks, actionCode, moveComment, ref tempMoveResult); }); databaseMoveResult = tempMoveResult; return(result); }