Skip to content

ApplicationTrigger doesn't work in BackgroundTaskWinMainComSample_CS #120

Open
@Felicity-R

Description

@Felicity-R

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions