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

Creating a SignalR hub


We'll implement a SignalR hub to allow clients to update order and batch statuses as they are changed by a user, and we'll receive updates from other clients in the system as they are updated by other users. Create the hub in the following procedure:

  1. Enter the following command into the NuGet Package Manager Console to install the Microsoft.AspNet.SignalR package:

    Install-Package Microsoft.AspNet.SignalR
    
  2. Enter the following command into the NuGet Package Manager Console to install the Microsoft.AspNet.SignalR.ServiceBus package:

    Install-Package Microsoft.AspNet.SignalR.ServiceBus
    
  3. Finally, enter the following command to install the windowsazure.servicebus package (do this at last because the Microsoft.AspNet.SignalR command installs its own version, which might not be compatible with partitioned brokered messages):

    install-package windowsazure.servicebus
    
  4. Modify the Microsoft.ServiceBus.ConnectionString app setting, which was added by the Microsoft.AspNet.SignalR.ServiceBus...