Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get LockToken of new BrokeredMessage added Azure Service Bus Queue

After sending the BrokeredMessage to the queue, like below

BrokeredMessage msg = new BrokeredMessage(content);
client.Send(msg);

Is there any way to get the value of this msg.LockToken?

like image 895
Kim Hoang Avatar asked Dec 06 '16 15:12

Kim Hoang


1 Answers

You can get LockToken from Message.SystemProperties.LockToken.

like image 174
Sawan Avatar answered Oct 20 '22 18:10

Sawan