Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="match"></param>
 /// <returns></returns>
 public bool Remove(Predicate <NoticeMessage> match)
 {
     return(TimeListener.Remove(m =>
     {
         if (m.Target is NoticeMessage)
         {
             var temp = (NoticeMessage)m.Target;
             return match(temp);
         }
         return false;
     }));
 }
Example #2
0
 public bool Remove(Guid messageId)
 {
     return(TimeListener.Remove(m =>
     {
         if (m.Target is NoticeMessage)
         {
             var temp = (NoticeMessage)m.Target;
             return Equals(temp.Id, messageId);
         }
         return false;
     }));
 }