Book Image

Learning Microsoft Azure

By : Geoff Webber Cross, Geoff Webber-Cross
Book Image

Learning Microsoft Azure

By: Geoff Webber Cross, Geoff Webber-Cross

Overview of this book

Table of Contents (19 chapters)
Learning Microsoft Azure
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. 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:

  2. 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:

  3. In order to interact with the Service Bus from the website...