Mercurial > silverbladetech
view Stocks/Stocks.Common/WebClientShim.cs @ 4:57f20ba55884
Fix for webClientShim to use downloadString instead of downloadData
Refactoring and introduction of static TimedDelegates.Execute() helper method
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Mon, 20 Feb 2012 23:04:58 +0700 |
parents | 29ed98d659e9 |
children | c812bca7b1ac |
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.DownloadString(address).ToString(); } } }