本文介绍了Windows Phone7中的多个通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

请让我知道如何添加多个深层吐司通知.

从应用程序启动计划的任务,该应用程序会定期调用wcf服务.用户的待处理呼叫数将显示为深层Toast通知.

我需要再添加一个通知,以从计划任务中调用服务的不同方法.但是只会弹出最后一次调用的通知.
Hi,

Please let me know on how to add multiple deep toast notifications.

A scheduled task is started from the application which calls the wcf service at regular intervals.The number of calls that are pending for the user is displayed as deep toast notification.

I need to add one more notification calling different method of the service from the scheduled task. But only the notification that was last called pops up.

推荐答案

如果尚未这样做,请确保编写代码,以使其容纳多个同时发生的通知并跟踪每个通知.您的应用将需要跟踪每个完成事件,并可能按照先进先出的顺序进行排队. 另外,请考虑限制同时处理的通知数量.为简单起见,您可以通过一次只允许一个待处理的通知来消除队列,即等待下一个通知的完成,然后再开始下一个通知.

If you are not already doing so, be sure that you write your code so that it accommodates multiple simultaneous notifications and keeps track of each. Your app will need to keep track of each completion event and possibly queue them up first in, first out. Also consider putting a limit on how many simultaneous notifications are pending.  To keep it simple you could eliminate the queue by allowing only one pending notification at a time, i.e. wait for completion of the last before starting the next.

-马克


这篇关于Windows Phone7中的多个通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 12:26