public override object Clone() { MapMessage mm = (MapMessage)base.Clone(); DefaultMessageConverter msgConverter = new DefaultMessageConverter(); Dictionary <string, object> properties = new Dictionary <string, object>(); properties = msgConverter.FromNmsPrimitiveMap((PrimitiveMap)body); msgConverter.SetNmsPrimitiveMap(mm.body, properties); return((MapMessage)mm); }
/// <summary> /// Fetch a message from Qpid Receiver /// Will wait for given timespan before abandoning the Fetch. /// </summary> /// <param name="timeout"></param> /// <returns>>NMS message or null if Fetch fails or times out</returns> public IMessage Receive(TimeSpan timeout) { return(ReceiveQpid(DefaultMessageConverter.ToQpidDuration(timeout))); }