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
Asked
Active
Viewed 490 times
1 Answers
1
For simply protecting shared data access between main app and background agent using Mutex
es 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 Mutex
es is discussed in this question.

Community
- 1
- 1

Heinrich Ulbricht
- 10,064
- 4
- 54
- 85