This app demonstrates Visual Studio Multi Tier Azure Service Bus. it Includes Service Bus Namespace, Frontend App to accept online orders, and backend app to process orders passed to the service bus namespace queue
- Create Azure ServiceBus Namespace.
- After the ServiceBus Namespace is created navigate to it.
- From the left pane, under Settings, select Share Access Policies
- Then select RootManageSharedAccessKey.
- Copy both Primary ConnectionString and Primary AccessKey to a notepad.
- Clone the repository to Visual Studio and got to Solution Explorer.
- In Solution Explorer, Expand MultiTierApp->Roles and Right-Click OrderProcessingRole and Select Properties.
- In the Peroperties Windows, under Settings, Change the value of the Microsoft.Servicebus.ConnectionString to add the one you copied in step 5.
- In Solution Explorer, Under FrontendWebRole Solution, double click QueueConnector.cs and change the following:
- public const string Namespace = "Add your ServiceBus Namespace NAME here"
- "RootManageSharedAccessKey", "Add your ServiceBus Namespace PrimaryKey here")
- Save the project and close Visual Studio.
- Start Visual Studio as Administrator by Right-Click on Visual Studio icon and Run As Administrator.
- Load your project and press F5 wich will run the app and start Micsoft Azure Emulator in your Taskbar.
- To view progress, Create orders in the web browser page, right-click Compute Emulator in your Tasbar and select Show Compute Emulator UI to watch the progress.
Enjoy :)