Exercise 3 – publishing messages to a Service Bus queue using a .NET Core application
We previously created the Azure Service Bus queue. Now, we will start sending messages from the Azure Service Bus queue using a .NET Core console application.
We will create a solution that will include two projects:
AzureQueueSample.Domains
: A class libraryAzureQueueSample.Sender
: A .NET Core console application
We will add the AzureQueueSample.Domains
project as a project reference to the AzureQueueSample.Sender
project. To do that, right-click on the AzureQueueSample.Sender
project Dependencies, then select Add Project Reference:

Figure 3.22 – Add Dependencies reference to a project
We select the AzureQueueSample.Domains
project and the project will be added in as a reference:

Figure 3.23 – AzureQueueSample solution
In the AzureQueueSample.Domains
project, we will add a new class named Appointment...