/// <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; })); }
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; })); }