findMessageById() private method

Finds the Message object with the given MsgID, and returns the Message object. It finds the object and returns it in an atomic operation.
private findMessageById ( int msgId ) : Message
msgId int The msgId of the Message object to return /// ///
return Message
示例#1
0
 /// <summary> Returns true if any responses are queued for the specified msgId
 ///
 /// return false if no responses are queued, otherwise true
 /// </summary>
 /* package */
 internal bool isResponseReceived(int msgId)
 {
     try
     {
         Message info = messages.findMessageById(msgId);
         return(info.hasReplies());
     }
     catch (System.FieldAccessException ex)
     {
         return(false);
     }
 }