In this section, we will create a console application that will actually send messages to the queue. To create this application, follow these steps:
- Create a new console application and name it FlixOne.BookStore.MessageSender using Visual Studio's new project (C#) template:
- Add the Nuget package Microsoft Azure Service Bus by right-clicking on the project.
- Open the app.config file and add the connection string and queue name.
<appSettings> <!-- Service Bus specific app settings for messaging connections --> <add key="Microsoft.ServiceBus.ConnectionString" value="Endpoint=sb://flixone.servicebus.windows.net/;SharedAccessKeyN ...