Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 windows phone 8 中后台代理的定期任务有疑问。
我想减少计划间隔的默认时间(30 分钟)。
我怎么能做到这一点?!
提前致谢。
你不能。只要操作系统认为它可以运行(例如不在节电模式中),操作系统就会运行该任务。即使你也不能确定它是否会运行。
没有办法配置周期。您可以做的是 - 写入代理上次运行到文件中的时间。当代理再次运行时,检查文件以确定您是应该退出还是执行所需的工作。