Capture Event before moving to Error Queue

Hi,
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.

Hi Manish,

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,
Hadi

Thanks for the response. Yes I got this right after posting this. :slight_smile: