Building a client application
For the client application, we'll create a WPF client application to display batches and orders and allow us to change their state. We'll use MVVM Light again, like we did for the message simulator we created in the sales solution, to help us implement a neat MVVM pattern. We'll create a number of data services to get data from the API using Azure AD authentication.
Preparing the WPF project
We'll create a WPF application and install NuGet packages for MVVM Light, JSON.NET, and Azure AD authentication in the following procedure (for the Express version of Visual Studio, you'll need Visual Studio Express for desktops):
- Add a WPF project to the solution called
ManagementApplication
. - In the NuGet Package Manager Console, enter the following command to install
MVVM Light
:install-package mvvmlight
- Now, enter the following command to install the
Microsoft.IdentityModel.Clients.ActiveDirectory
package:install-package Microsoft.IdentityModel.Clients...