gpt4 book ai didi

c# - WP7 在 PeriodicTask 上 25 秒后调用 NotifyComplete()

转载 作者:行者123 更新时间:2023-11-30 14:16:03 25 4
gpt4 key购买 nike

我试图理解为什么即使在定期任务执行的 25 秒限制之后仍会调用 NotifyComplete() 方法。

我知道如果 notifyComplete() 在 25 秒之前没有被调用,任务就会被终止,但这不是正在发生的事情。 NotifyComplete() 仍会在 60 秒后被调用。

protected override void OnInvoke(ScheduledTask task)
{
Thread.Sleep(60000); // 60 Seconds
NotifyComplete();
}

有什么想法吗?我在某种程度上误解了后台代理的工作方式?谢谢!

最佳答案

如果在调试时发生。

When running under the debugger, the memory and run-time constraints are ignored by the Windows Phone operating system.

关于c# - WP7 在 PeriodicTask 上 25 秒后调用 NotifyComplete(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8465025/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com