Mercurial > silverbladetech
view 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 |
line wrap: on
line source
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; namespace Stocks.Common { public class WebClientShim : IWebClientShim { private readonly WebClient _webClient; public WebClientShim(WebClient webClient) { _webClient = webClient; } public string DownloadString(string address) { return _webClient.DownloadData(address).ToString(); } } }