'RabbitMQ always hold 1 message on queue

I want to always hold one message on rabbitMQ's queue. When the second message is published first message will be consumed but the second message wait in a queue. When the third message is published the second message will be consumed. This is how things will go but I don't know how to do it. Any ideas?

Note: I am using c#



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source