【问题标题】:Windows 8 Store app : Background task interval between reexecutionWindows 8 Store 应用程序:重新执行之间的后台任务间隔
【发布时间】:2013-02-28 08:19:43
【问题描述】:

当我阅读有关 Windows 8 商店应用程序的信息时,我在 MSDN 上发现:

Supporting your app with background tasks

CPU使用限制如下:

如果应用不在锁屏上:CPU 使用配额(1 秒)&
刷新时间(2小时)

如果应用在锁屏:CPU 使用配额(2 小时)&
刷新时间(15 分钟)

这是否意味着我不能每 (10) 分钟运行一次后台任务?只有我会限制最少 (15) 分钟?

【问题讨论】:

    标签: windows-8 windows-runtime windows-store-apps windows-store


    【解决方案1】:

    没错。见TimeTrigger class docs ...

    注意如果 FreshnessTime 设置为小于 15 分钟,则例外情况是 尝试注册后台任务时抛出。

    Introduction to Background Tasks whitepaper对此有详细的讨论。

    【讨论】:

    • 这是 100% 完美的。感谢您的澄清。
    猜你喜欢
    • 2016-11-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-25
    • 2011-07-16
    • 2017-03-17
    • 1970-01-01
    相关资源
    最近更新 更多