public HandlerInfoWrapper(HandlerRecordData handleInfo) { this.MessageId = handleInfo.MessageId; this.HandlerTypeCode = handleInfo.HandlerTypeCode; this.MessageTypeCode = handleInfo.MessageTypeCode; this.TimeStamp = DateTime.Now; }
/// <summary> /// 检查该处理程序信息是否存在 /// </summary> public virtual bool IsHandlerInfoExist(HandlerRecordData handlerInfo) { return(_handlerInfoSet.Contains(new HandlerInfoWrapper(handlerInfo))); }
/// <summary> /// 添加处理程序信息 /// </summary> public virtual void AddHandlerInfo(HandlerRecordData handlerInfo) { _handlerInfoSet.Add(new HandlerInfoWrapper(handlerInfo)); }