I am using NServiceBus(7.1.9) with RabbitMQ in my application.
I want to capture the event when the message has done all the retries and now moving to the Error Queue. Basically what I want is to raise notification when all my retry count is done and my message will be discarded to Error queue.
Or If in any way I can know in my handler if the current message is the last retry for that particular message id.
The Notification API is designed to give you exactly that. Please have a look at this doco page.
You can perform your action when an immediate or delayed retry occurs as well as when the message is about to hit the error queue.
Hope this helps,
Thanks for the response. Yes I got this right after posting this.