- I am using Azure Service Bus
- I have a request queue that is not session based
- I have a session based response queue
- I use session = ResponseQueue.AcceptMessageSession(correlationId) to receive message
- I use await session.ReceiveAsync(timespan)
If the Receive times out I fail the client's request but the response message might end up in the Response Queue after the fail.
I have set EnableDeadLetteringOnMessageExpiration = true on the Response Queue.
The problem is that if the Receive times out and the Response is put in the queue it never moves to the DeadLetter Queue when the TTL expires.
How do I get this scenario to work ?
I want the responses to Expire on the session based Response Queue.
fromGlasgow
- Edited by fromGlasgow 8 hours 43 minutes ago