I have a UWP application that needs to perform a log task for every system start/resume/suspend/shutdown.
Is there a way I could do this task with a background task? From the MS documents, there seems to be no sort of trigger for such events.
I currently have a service that does this, and access to the service from the UWP could be performed, but the service will not be packaged along with the UWP app so it might not be the best solution right now.
app.xaml.csfile so you just need to create a service through which you can add current application log - user11362349