进程中后台任务
In-Process Background task
我是后台任务的新手,根据 msdn 文章,进程内后台任务将在应用程序中执行 process.Is 如果应用程序不是 运行,进程内后台任务将被触发?
Is In-process background task will trigger if the application is not running?
是的。
In-process background tasks are simpler to implement than out-of-process background tasks. However, they are less resilient. If the code running in an in-process background task crashes, it will take down your app.
Also note that DeviceUseTrigger, DeviceServicingTrigger and IoTStartupTask cannot be used with the in-process model. Activating a VoIP background task within your application is also not possible. These triggers and tasks are still supported using the out-of-process background task model.
请查看 MSDN 文档了解更多详情:Create and register an in-process background task
我是后台任务的新手,根据 msdn 文章,进程内后台任务将在应用程序中执行 process.Is 如果应用程序不是 运行,进程内后台任务将被触发?
Is In-process background task will trigger if the application is not running?
是的。
In-process background tasks are simpler to implement than out-of-process background tasks. However, they are less resilient. If the code running in an in-process background task crashes, it will take down your app.
Also note that DeviceUseTrigger, DeviceServicingTrigger and IoTStartupTask cannot be used with the in-process model. Activating a VoIP background task within your application is also not possible. These triggers and tasks are still supported using the out-of-process background task model.
请查看 MSDN 文档了解更多详情:Create and register an in-process background task