An Azure service that provides cloud messaging as a service and hybrid integration.
Hi @Warren Kinley ,
Dead-lettering a message does not automatically complete the session; rather, it's up to your application to handle that.
When you dead-letter a message, you use the DeadLetterMessageAsync method. This queues the message for inspection later.
After dead-lettering the message, you need to explicitly complete the session. This step is crucial because, if the session is not completed, it may lead to further issues like session lock timeout or unprocessed messages sitting in the session indefinitely.
You can access the dead-letter queue to inspect the dead-lettered messages later on and make decisions based on the errors encountered.
References:
- Overview of Service Bus dead-letter queues
- How to access the dead-letter queue
- DeadLetterMessageAsync Method
Hope this helps!