O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required