I am working with RabbitMq .net and the message acknowledgements. If the consumer is able to process the message we can send back an ack in the form of
channel.BasicAck(ea.DeliveryTag, false);
which will take it off the queue. I would like to move the message to the "error-queue" if I have issues with deserialization
var message = JsonConvert.DeserializeObject<object>(json);
I have tried using "x-dead-letter-exchange" but it depends on "x-message-ttl" time setting. I do only want to move messages to error-queue if processing fails. How to achieve this funcationality? I couldn't find any help online.