Inventory icon indicating copy to clipboard operation
Inventory copied to clipboard

Feature Request : Background Services

Open dicksonkimeu opened this issue 3 years ago • 2 comments

How can background services be added as used to be in UWP ?

dicksonkimeu avatar Sep 26 '22 23:09 dicksonkimeu

Hi, thank you for this issue!

I think there are two options to do it:

  1. To use Windows.ApplicationModel.Background. This namespace already contains a lot of good stuff to organize your background activity. You can try to create an empty UWP project, using Template Studio for UWP, because it has already implemented feature for the simple background task management. Template Studio wizard

  2. To use some 3d party solution, like Hangfire. Such ready-to-use solutions already has many cool features, like background tasks persistence, scheduling and so on.

Honestly, I haven't worked with Windows.ApplicationModel.Background namespace before, so it's difficult to say, how usable it is. But your idea with some background services is cool, and I've already thought about it. It definitely has its place in this project.

LeftTwixWand avatar Sep 27 '22 22:09 LeftTwixWand

Also, in the Windows Community Toolkit there is some implementation for the Background Tasks management. Seems, that it has some build in functionality. Background tasks

You can download the sample app from the Store. Or through the Winget:

winget install "Windows Community Toolkit Sample App"

LeftTwixWand avatar Sep 27 '22 23:09 LeftTwixWand