diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-10 17:54:29 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-10 17:54:29 +0000 |
commit | 62ab81b11d2df352ba2ac7ca47308e11c4683d08 (patch) | |
tree | fcea2e6e812889b65142b63520dbaf58a6e38564 /Main/Program.cs | |
parent | 20dafe9fb05448c39fe109b0231307335191459b (diff) | |
download | newsaggregator-62ab81b11d2df352ba2ac7ca47308e11c4683d08.tar.gz newsaggregator-62ab81b11d2df352ba2ac7ca47308e11c4683d08.tar.bz2 newsaggregator-62ab81b11d2df352ba2ac7ca47308e11c4683d08.zip |
Updated articles for new insert articles method
Diffstat (limited to 'Main/Program.cs')
-rw-r--r-- | Main/Program.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Main/Program.cs b/Main/Program.cs index aa641c9..3d56b36 100644 --- a/Main/Program.cs +++ b/Main/Program.cs @@ -37,13 +37,14 @@ namespace Main { }
};
string[] xmls = new[] {
- await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml")
+ await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml"),
+ await Download.DownloadXML("http://feeds.skynews.com/feeds/rss/world.xml"),
+ await Download.DownloadXML("https://abcnews.go.com/abcnews/topstories")
};
List<Article> articles = ParserService.ParseMultiple(xmls, configs).ToList();
using (var db = new DatabaseContext()) {
- int records = await db.InsertArticles(articles);
- Console.WriteLine($"{records} written to database");
+ await db.InsertArticles(articles);
}
}
}
|