using System; using System.Linq; using System.Threading.Tasks; using System.Collections.Generic; using Aggregator.Classes; using Aggregator.Parser; namespace Main { internal static class Program { private static async Task Main(string[] args) { List configs = new List() { new Config() { Source = "BBC", Title = 0, Description = 1, ArticleLink = 2, ImageLink = 5, PublishDate = 4 } }; string[] xmls = new [] { await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml") }; List
articles = ParserService.ParseMultiple(xmls, configs).ToList(); Console.WriteLine(articles.Count); } } }