From a26d25ba319e7fdacb47bf8b66e22ca3189fb0d9 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 8 Feb 2019 10:49:19 +0000 Subject: Moved main outside for usage in general purpose --- Aggregator/Main/Main.csproj | 14 -------------- Aggregator/Main/Program.cs | 28 ---------------------------- 2 files changed, 42 deletions(-) delete mode 100644 Aggregator/Main/Main.csproj delete mode 100644 Aggregator/Main/Program.cs (limited to 'Aggregator/Main') diff --git a/Aggregator/Main/Main.csproj b/Aggregator/Main/Main.csproj deleted file mode 100644 index dd85bc5..0000000 --- a/Aggregator/Main/Main.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - Exe - netcoreapp2.1 - Latest - - - diff --git a/Aggregator/Main/Program.cs b/Aggregator/Main/Program.cs deleted file mode 100644 index 80fd62a..0000000 --- a/Aggregator/Main/Program.cs +++ /dev/null @@ -1,28 +0,0 @@ -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); - } - } -} -- cgit v1.2.3-13-gbd6f