简体   繁体   English

后台任务和持续时间(Windows Phone 7)

[英]Background task and duration (Windows Phone 7)

I've read a lot of different values for how long a background task can run. 对于后台任务可以运行多长时间,我已经阅读了很多不同的值。 Everything from 15 to 30 seconds. 一切从15到30秒。 MSDN writes 25 seconds. MSDN写入25秒。

Does anyone know what the value is for sure? 有谁知道该确定的价值是什么? If the value is 25 seconds does it mean that I have 25 seconds to perform my tasks or does the task take some time to start and/or finish? 如果该值为25秒,是否意味着我有25秒的时间来执行我的任务,或者该任务需要一些时间来开始和/或完成?

MSDN seems like it's been updated, as I could swear that it was 15 seconds earlier this year. MSDN似乎已被更新,因为我可以发誓它是今年早15秒。 Anyway, I wouldn't concern myself, because if you can't do the operation in 15 seconds, you're likely to break the memory limit of 5 MB as well. 无论如何,我不会担心自己,因为如果您不能在15秒内完成该操作,那么您很可能也会突破5 MB的内存限制。

Also, the time is the execution time from when the ScheduledTaskAgent.OnInvoke is called. 而且,该时间是从调用ScheduledTaskAgent.OnInvoke以来的执行时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM