If you are using Service Bus, you should know that you have the ability to be notified when a message is available in the queue or in a subscription. Using this feature you don’t need to call the "Receive" method and catch the timeout exception when there are no new messages are available. OnMessageOptions messageOptions = new OnMessageOptions() { AutoComplete = true, ExceptionReceived += LogErrorsOnMessageReceived }; queueClient.OnMessage((message) => { ... }, messageOptions); As you can see, you register to an event that will be called when a new message is available. If there are more than 1 messages available the event will be triggered more than one. Each notification will run on a different thread. To be able to control the number of concurrent messages that can be received by a client you should change the value of "MaxConcurrentCalls". OnMessageOptions messageOptions = new OnMessageOptions() { AutoComplete = true,...
DREAMER, CRAFTER, TECHNOLOGY ENTHUSIAST, SPEAKER, TRAINER, AZURE MVP, SOLVING HARD BUSINESS PROBLEMS WITH CUTTING-EDGE TECHNOLOGY