Keeping Deals and Membership Information Up-to-Date with a Background Agent

Use a background agent to keep membership information and deals associated with your app up-to-date. You can create a Wallet agent for membership and deals in the same manner as shown earlier in this chapter.

The sample app includes a declaration of the deals background agent in the WMAppManifest.xml file, shown in the following excerpt:

<Tasks>  ...  <ExtendedTask Name="BackgroundTask">    <BackgroundServiceAgent      Specifier="WalletAgent"      Name="DealsAndMembershipAgent"      Source="DanielVaughan.WPUnleashed.MembershipAgent"      Type="DanielVaughan.WPUnleashed.DealsAndMembershipAgent" />  </ExtendedTask></Tasks>

The sample’s DealsAndMembershipAgent ...

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.