Getting messages from Service Bus queue

In the previous post I discussed how to implement sending messages. In this post I will show how to receive messages. The simplest code looks like this: static void GetMessage() { try { var queueClient = GetQueueClient(); var message = queueClient.Receive(); Console.WriteLine(“Received a message: ” + message.GetBody<string>()); } catch (Exception ex) { Console.WriteLine(“An exception occured:… Continue reading Getting messages from Service Bus queue