The companion code for this article on using NServiceBus with Azure Service Bus. Refer to the linked article for a full walkthrough of the code.
Running the sample
Both endpoints read the Azure Service Bus connection string from the ConnectionStrings:AzureServiceBusConnectionString setting. Set it in each project's appsettings., or set the ConnectionStrings__AzureServiceBusConnectionString environment variable to keep the connection string out of source files.