public async Task ReadItems() { DbgHelper.CurrentNumberOfFeeds("Beginn von ReadItems"); IEnumerable <FeedItem> items = new List <FeedItem>(); switch (FeedType) { case Param.FeedTypeFile: items = await FeedHelper.ReadItemsFromFile(Uri, this); break; case Param.FeedTypeWeb: items = await FeedHelper.ReadItemsFromWeb(Uri, this); break; } if (items.Count() > 0) { DbgHelper.CurrentNumberOfFeeds("items.Count > 0"); SaveItemsToDatabase(items); DbgHelper.CurrentNumberOfFeeds("Nach SaveItemsToDatabase"); UpdateFeed(); DbgHelper.CurrentNumberOfFeeds("Nach UpdateFeed"); } }