[rabbitmq-discuss] how to send a message including a array via .net client?

Chen Houwu chenhouwu at gmail.com
Mon Dec 27 11:22:40 GMT 2010

   I am a newbie to rabbitmq, I want to send a message object as
following via .net client:

   public class Message
        public int ID { get; set; }
        public string Name { get; set; }
        public byte[] Binary { get; set; }
        public string[] Infos{get;set;}
        public Dictionary<string,int> CountMap { get; set; }

Here is my code:
var builder = new
/*----------How to deal with msg.Infos and CountMap here?------------/

/*shoud it be written by myself such as: */
foreach(var info in infos)
/* or the suporting to array and dictionary already exists?*/

/* I have found in"src/client/impl/WireFormatting.cs", there are
methods like "WriteArray", and "WriteTable"*/

 IBasicProperties props = _channel.CreateBasicProperties();
props.DeliveryMode = 2;
 _channel.BasicPublish(_exchangeName, "some key", props,

More information about the rabbitmq-discuss mailing list