Delivery Mode

Sep 28, 2015 at 2:53 PM
Hi,

I've just recently started using AMQP.NET Lite on the .NET MF platform. I've created durable queues under RabbitMQ and can persist messages to the queues without issues. My challenge is trying to work out how to set the Delivery Mode = 2 (for the message) to ensure the message is persisted.

I've looked through the samples and none of them appear to be setting this property/attribute. Any suggestions?

Thanks,
Jason.
Sep 28, 2015 at 5:30 PM
Hi,

I figured it out.There is a property on the Message's header: Message.Header.Durable which when set to true, makes the message persistent.

Thanks,
Jason.