title: How to communicate between a background agent and foreground app?
body: <p>I have a background agent and a foreground app on Windows Phone Mango. (These are two different projects in the same solution.) When the background agent runs, it inserts records into a database that is accessible to the foreground app. How can I notify the foreground app that it should check the database for new rows?</p>
  
  <p>I can't just have a <code>static event</code> in the data context class, because the background and foreground are two different threads, and <code>static</code> variables on a class are not shared across threads, right?</p>
  
  <p>Do I just have to poll from the foreground?</p>