I am using azure.messaging.servicebus sdk, and I would like to log messages that are going to dead-letter and also inform other services about it. Can't seem to find a handler in the object MessageProcessor for this behavior. I thought of doing my own checks of "DeliveyCount == MaxDeliveryCount" But I can't find the MaxDeliveryCount on any of the servicebus objects (DeliveryCount is there).
Am I missing something? The only solution I can think of is setting my own Max in config and set the amount in azure to be at least that.