diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-08 10:49:19 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-08 10:49:19 +0000 |
commit | a26d25ba319e7fdacb47bf8b66e22ca3189fb0d9 (patch) | |
tree | db77cc3c0d4b3b4cb57f7bed7768eb8f905198f3 /Aggregator/Main | |
parent | 108fbc3f497babeceb83a7e0e720127fa26a7db3 (diff) | |
download | newsaggregator-a26d25ba319e7fdacb47bf8b66e22ca3189fb0d9.tar.gz newsaggregator-a26d25ba319e7fdacb47bf8b66e22ca3189fb0d9.tar.bz2 newsaggregator-a26d25ba319e7fdacb47bf8b66e22ca3189fb0d9.zip |
Moved main outside for usage in general purpose
Diffstat (limited to 'Aggregator/Main')
-rw-r--r-- | Aggregator/Main/Main.csproj | 14 | ||||
-rw-r--r-- | Aggregator/Main/Program.cs | 28 |
2 files changed, 0 insertions, 42 deletions
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 @@ -<Project Sdk="Microsoft.NET.Sdk">
-
- <ItemGroup>
- <ProjectReference Include="..\..\Classes\Classes.csproj" />
- <ProjectReference Include="..\Parser\Parser.csproj" />
- </ItemGroup>
-
- <PropertyGroup>
- <OutputType>Exe</OutputType>
- <TargetFramework>netcoreapp2.1</TargetFramework>
- <LangVersion>Latest</LangVersion>
- </PropertyGroup>
-
-</Project>
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<Config> configs = new List<Config>() {
- 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<Article> articles = ParserService.ParseMultiple(xmls, configs).ToList();
- Console.WriteLine(articles.Count);
- }
- }
-}
|