microsoft/DesktopBridgeToUWP-Samples

ApplicationTrigger doesn't work in BackgroundTaskWinMainComSample_CS

Felicity-R opened this issue · 0 comments

Load the BackgroundTaskWinMainComSample_CS solution.
In MainWindow.xaml.cs, change the new TimeTrigger(15, false) to be a new ApplicationTrigger().
Run the program.
When registration = builder.Register(); is called (in MainWindow.xaml.cs), a ComException is thrown (caught by the catch block on line 113).
This exception doesn't happen when you run it the the TimeTrigger.

Is there a way to get ApplicationTriggers to work?