Azure Service Bus keeps throwing MessageLockLostExceptions
I keep getting MessageLockLostExceptions when processing messages. I am using Microsoft.Azure.ServiceBus 3.2.0 with .NET Core 2.1. I have a queue with LockDuration set to 30 seconds already containing a number of messages to be processed. I took the very basic message-receiving tutorial code from https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-get-started-with-queues#receive-messages-from-the-queue , which works fine. Now I want to simulate a slightly longer running message processing task (but still well within LockDuration ) by adding Task.Delay(10_000) . But