Connecting a website to the Service Bus topic
We last saw the sales customer website order controller in Chapter 5, Building Azure MVC Websites, with the order status being updated to New
in the sales database. Now that we have the service bus topic set up, we can modify this to send an order message for the production business domain to process and start manufacturing and the supply business domain to process and prepare packaging.
Preparing the website
The following procedure walks us through the installation of the WindowsAzure.ServiceBus
NuGet package and configuration of the connection string, allowing the website to interact with the Service Bus:
In the portal, navigate to the TOPICS tab in the Service Bus workspace, select the new topic, and click on CONNECTION INFORMATION on the toolbar:
Here, we can see the SAS connection string for the SAS policies we just created. Leave this page open so that we can copy the strings later:
In order to interact with the Service Bus from the website...