Overview of the Sample Bookshop WCF Service

The Bookshop demo application includes a server-side component, which is used by both the ProductsViewModel and ProductDetailsViewModel classes, providing the application with a set of products to display. The server-side component is fairly arbitrary and is presented here merely for the sake of completeness.

The WCF service is called BookshopService and resides in the WPUnleashed.Web project of the downloadable sample code (see Listing 3.15).

LISTING 3.15. BookshopService Class

[AspNetCompatibilityRequirements(    RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]public class BookshopService : IBookshopService{    public IEnumerable<Product> GetProducts() ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.