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:
Enter the following command into the NuGet Package Manager Console to install the
Microsoft.AspNet.SignalR
package:Install-Package Microsoft.AspNet.SignalR
Enter the following command into the NuGet Package Manager Console to install the
Microsoft.AspNet.SignalR.ServiceBus
package:Install-Package Microsoft.AspNet.SignalR.ServiceBus
Finally, enter the following command to install the
windowsazure.servicebus
package (do this at last because theMicrosoft.AspNet.SignalR
command installs its own version, which might not be compatible with partitioned brokered messages):install-package windowsazure.servicebus
Modify the
Microsoft.ServiceBus.ConnectionString
app setting, which was added by theMicrosoft.AspNet.SignalR.ServiceBus...