internal static void DismountDatabaseDirect(AmServerName serverName, Guid dbGuid, UnmountFlags flags, AmDbActionCode actionCode) { AmFaultInject.GenerateMapiExceptionIfRequired(dbGuid, serverName); AmDismountArg dismountArg = new AmDismountArg((int)flags, (int)actionCode); Dependencies.AmRpcClientWrapper.DismountDatabaseDirect(serverName.Fqdn, dbGuid, dismountArg); }
internal static void MountDatabaseDirect(AmServerName serverName, AmServerName lastMountedServerName, Guid dbGuid, MountFlags storeFlags, AmMountFlags amFlags, AmDbActionCode actionCode) { AmFaultInject.GenerateMapiExceptionIfRequired(dbGuid, serverName); AmMountArg mountArg = new AmMountArg((int)storeFlags, (int)amFlags, lastMountedServerName.Fqdn, (int)actionCode); Dependencies.AmRpcClientWrapper.MountDatabaseDirectEx(serverName.Fqdn, dbGuid, mountArg); }