在后台阅读 SyndicationFeed

Reading SyndicationFeed in background

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 后未执行任何操作。

尝试为您的 运行 背景添加延迟

public async void Run(IBackgroundTaskInstance taskInstance)
    {

        BackgroundTaskDeferral deferral = taskInstance.GetDeferral();

        //YOUR CODE GOES HERE           

        deferral.Complete();

    }