I want to create a Message object and explicitly send it to topic subscription dead letter queue via correlation filter. I cannot find anything that can do that. I've explored the Service Bus library, even the documentation says I can do that on application level, but don't know how.
1 Answers
1
votes
You can't. Messages can be dead-lettered by the broker only. What you can do is set-up a subscription with dead-lettering upon message TTL expiration and a TTL short enough that every message gets dead-lettered. This will mean that messages will have a dead-letter reason stated as expired TTL.
In general, I'd recommend not to abuse dead-lettering beyond what it was designed for.