Receive all unacknowledged messages using the .NET API
Are there any best practice recommendations to get all unacknowledged messages in a queue? The scenario I am thinking of is when messages are received by a client, but could not processed for what ever reason. The next time a new message is received on the queue, all the messages that are on the queue should be delivered to the connected client on FIFO basis.
The only I can think of this using the .NET API is to stop and start the flow each time a message is received, causing all messages to be redelivered.
Is there a better way?