Kim Hoang
Kim Hoang

Reputation: 1368

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?

Upvotes: 9

Views: 981

Answers (1)

Saw
Saw

Reputation: 6426

You can get LockToken from Message.SystemProperties.LockToken.

Upvotes: 2

Related Questions