在后台阅读SyndicationFeed

时间:2015-09-13 10:58:07

标签: push-notification rss background-task

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之后没有执行任何内容。

0 个答案:

没有答案