Take the 2-minute tour ×

I would like to notify my main application (if it is still running) when the ScheduledAgent has finished its background task. Is it actually possible? I couldn't figure out how I could reference my App or MainPage

share|improve this question

1 Answer 1

up vote 1 down vote accepted

For simply protecting shared data access between main app and background agent using Mutexes have a look at this question. Maybe this already gives you a hint in the right direction.

But if you want to react to events like "the background agent just finished" (in main app) or "the main app starts up" (in background agent) then you might be out of luck. There is no simple direct communication available, let alone direct data access. You could use Sockets or Raw Notifications.

A method based on polling and Mutexes is discussed in this question.

share|improve this answer

Your Answer


