简体   繁体   English

C#Metro-后台任务刷新少于15分钟

[英]C# metro - Background task refresh less than 15 minutes

I have a BackgroundTask to refresh live tile. 我有一个BackgroundTask刷新实时磁贴。 I use TimeTrigger but I need a more quickly refresh than 15 minutes. 我使用TimeTrigger但需要比15分钟更快的刷新时间。 I read it's impossible, but oficial app Social use it for show a profiles pictures of users friend, so some way must exist. 我读到这是不可能的,但是官方应用程序Social使用它来显示用户朋友的个人资料照片,因此必须存在某种方式。

Can you help me? 你能帮助我吗?

This sample shows you how to do it: 该示例向您展示了如何执行此操作:

http://code.msdn.microsoft.com/windowsapps/Tile-Update-every-minute-68dbbbff http://code.msdn.microsoft.com/windowsapps/Tile-Update-every-minute-68dbbbff

It basically creates ScheduledTileNotifications for every minute for the next couple of hours. 它基本上在接下来的几个小时中每分钟创建一次ScheduledTileNotifications。 When that time is up a BackgroundTask creates the ScheduledTileNotifications again. 时间到了,BackgroundTask再次创建ScheduledTileNotifications。

也许您应该使用tile通知队列 ,它可以帮助您最多显示5条通知,就像应用程序Social一样。

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

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