Hi,
I suggest you use the service control events instead of the bus notifications.
With ServiceControl events it is possible to acquire more information about the failed messages like shown in the following example
class MessageFailedHandler : IHandleMessages<MessageFailed>
{
public void Handle(MessageFailed message)
{
string failedMessageId = message.FailedMessageId;
string exceptionMessage = message.FailureDetails.Exception.Message;
using (var client = new HttpClient())
{
client.Post("serviceControlURI/errors/retry", payload);
}
}
you can see what is available on the message here
When you have the message id you can then issue a POST request against the following ServiceControl API
/errors/retry
the payload needs to contain a JSON list of message ids.
Attention: The ServiceControl APIs are still considered internal and are suspected to change. That's why there is no documentation available.
Regards
Daniel