Skip to content

Instantly share code, notes, and snippets.

View the-tatarinov-av's full-sized avatar

Alexander Tatarinov the-tatarinov-av

  • Serenity, LLC
  • Yoshkar-Ola
View GitHub Profile
@the-tatarinov-av
the-tatarinov-av / MessageLock
Created April 5, 2017 09:43 — forked from Soopster/MessageLock
Message Lock Renewal For Azure Service Bus Brokered Messages
private async Task OnMessageReceivedAsync(BrokeredMessage receivedMessage)
{
try{
var messageLock = new MessageLock(receivedMessage)){
// Process receivedMessage
await messageLock.CompleteAsync();
}
finally {
messageLock.Dispose();