Updating the order processor
We can update the order processor worker role to call the Notification/PostOrderUpdate
action when an order status changes. We'll do this in the following short procedure:
- Install the mobile service NuGet package with the following command in the NuGet Package Manager Console:
Install-Package WindowsAzure.MobileServices
- Add a
mobileServiceUrl
string setting to the role's settings with the URL of our local service for local and the publish service for the cloud. - Add a
mobileServiceKey
string setting to the role's settings with the master key of our local service for local and the published service for the cloud. - Add a
MobileServiceClient
variable, which is instantiated in the constructor with cloud configurations settings like this:private readonly MobileServiceClient _mobileService; public OrderProcessor() { var mobileServiceUrl = CloudConfigurationManager.GetSetting("mobileServiceUrl"); var mobileServiceKey = CloudConfigurationManager...