In this section, we will create a console application that would receive messages from the queue. To create this application, follow these steps:
- Create a new console application (C#) and name it FlixOne.BookStore.MessageReceiver.
- Add the NuGet package for Azure Service Bus (same as added in the previous application).
- Add config keys/values to your App.Config file and a reference of System.Configuration to the project.
- Write the code to receive messages from the Azure Bus Service queue, so your program.cs file should look like this:
using System; using System.Configuration; using Microsoft.ServiceBus.Messaging; namespace FlixOne.BookStore.MessageReceiver { internal class Program { private static void Main(string[] ...