问题描述
在Windows 8.1和WP 8.1中,后台代理的工作方式略有不同:
In Windows 8.1 and WP 8.1, there was a slight difference between the way Background Agent used to work:
赢得手机: 在Win Phone中,当后台代理用完配额后,操作系统将终止后台代理.此终止 将在没有警告的情况下完成. 在Win Phone中,当发现后台代理处于空闲状态时,操作系统将停止后台代理.在这种情况下,操作系统将引发IBackgroundTaskInstance.Canceled.
Win Phone: In Win Phone, the OS will terminate the background agent when the background agent exhausts its quota. This termination will be done with no warning. In Win Phone, the OS will stop the background agent when the background agent is found to be idle . In this situation the OS will raise IBackgroundTaskInstance.Canceled.
我的问题是,Windows 10移动版和Windows 10台式机之间是否有这种区别?
My question is, is there any such difference between Windows 10 mobile and Windows 10 desktop?
推荐答案
在Windows 10中,后台代理已替换为背景任务.无论运行的W10设备类型是移动设备还是台式设备,收到取消事件后,标准后台任务将有5秒钟的时间来完成其工作. 5秒过后,后台任务将终止.如果超出了配额(CPU,内存或网络),则取消事件可以由用户或系统触发.从一个W10设备到另一个W10设备的变量是用于终止任务的内存"和网络"阈值.如果您想了解有关W10后台任务的更多信息,强烈建议您观看此视频由Microsoft在Ignite 2015活动期间制作.
In windows 10 Background Agent has been replaced with Background Task. Whatever the type of W10 device (mobile or desktop) it's running on, a standard background task will have 5 seconds to complete its job after receiving the cancel event. Once the 5 seconds have elapsed, the background task will be terminated. The cancel event may be triggered by the user or by the system if quotas (CPU, memory or network) have been exceeded. What is variable from one W10 device to another are both the Memory and Network thresholds used to terminate the task. If you want to learn more about W10 Background tasks, I highly encourage you to watch this video that was made by Microsoft during Ignite 2015 event.
这篇关于UWP中的后台代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!