public static bool WaitForContents(object obj, int timeout = 5000) { int serial = AliasCommands.ResolveSerial(obj); if (serial == 0) { UOC.SystemMessage(Strings.Invalid_or_unknown_object_id); return(false); } return(UOC.WaitForContainerContents(serial, timeout)); }