Mercurial > silverbladetech
comparison Stocks/Stocks.Common/WebClientShim.cs @ 2:29ed98d659e9
Adding WebClientShim files
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Mon, 20 Feb 2012 22:04:50 +0700 |
parents | |
children | 57f20ba55884 |
comparison
equal
deleted
inserted
replaced
1:bd448bb6e0ba | 2:29ed98d659e9 |
---|---|
1 using System; | |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
4 using System.Text; | |
5 using System.Net; | |
6 | |
7 namespace Stocks.Common | |
8 { | |
9 public class WebClientShim : IWebClientShim | |
10 { | |
11 private readonly WebClient _webClient; | |
12 | |
13 public WebClientShim(WebClient webClient) | |
14 { | |
15 _webClient = webClient; | |
16 } | |
17 | |
18 public string DownloadString(string address) | |
19 { | |
20 return _webClient.DownloadData(address).ToString(); | |
21 } | |
22 } | |
23 } |