aboutsummaryrefslogtreecommitdiff
path: root/Aggregator/Parser
diff options
context:
space:
mode:
Diffstat (limited to 'Aggregator/Parser')
-rw-r--r--Aggregator/Parser/Download.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Aggregator/Parser/Download.cs b/Aggregator/Parser/Download.cs
index 30a2881..c90dc0a 100644
--- a/Aggregator/Parser/Download.cs
+++ b/Aggregator/Parser/Download.cs
@@ -1,11 +1,18 @@
using System.Net;
+using System.Threading.Tasks;
namespace Parser {
public static class Download {
- public static string DownloadXML(string site) {
+ public static string DownloadXMLSync(string site) {
using (var client = new WebClient()) {
return client.DownloadString(site);
}
}
+
+ public static Task<string> DownloadXML(string site) {
+ using (var client = new WebClient()) {
+ return client.DownloadStringTaskAsync(site);
+ }
+ }
}
}