Uri uri = new Uri( feedUri);
SyndicationClient client = new SyndicationClient();
SyndicationFeed currentFeed = await client.RetrieveFeedAsync(uri);
XmlDocument toastXml = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastImageAndText03);
XmlNodeList toastTextElement = toastXml.GetElementsByTagName("text");
toastTextElement[0].AppendChild(toastXml.CreateTextNode("Working"));
ToastNotification toast = new ToastNotification(toastXml);
ToastNotificationManager.CreateToastNotifier().Show(toast);在RetrieveFeedAsync之后,没有执行任何操作。
发布于 2015-09-13 12:22:45
尝试将延迟添加到运行背景中。
public async void Run(IBackgroundTaskInstance taskInstance)
{
BackgroundTaskDeferral deferral = taskInstance.GetDeferral();
//YOUR CODE GOES HERE
deferral.Complete();
}https://stackoverflow.com/questions/32548967
复制相似问题