Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

How to set TimeToLIve explicaity before send message to deadletter

$
0
0

Hi,

I'm trying to update TimetoLive for a brokered message before sending it to Deadletter as below but the message when moved to deadletter it is taking the time to live value when it is created. It is not taking the value which I set before moving to dead letter.

 message.TimeToLive = new TimeSpan(0, 5, 0);
 await message.DeadLetterAsync();
Is there something I'm missing here? I wanted to update TTL before sending message to dead letter. Does deal letter always take TimeToLive value from the message?

Thanks, Amar



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>