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?
I can't just have a static event
in the data context class, because the background and foreground are two different threads, and static
variables on a class are not shared across threads, right?
Do I just have to poll from the foreground?