Mercurial > silverbladetech
diff Stocks/Stocks.Service/StocksService.cs @ 8:6e84a4c92378
FakeWebClientShim added and refactoring
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:05:47 +0700 |
parents | c812bca7b1ac |
children | 399398841fd0 |
line wrap: on
line diff
--- a/Stocks/Stocks.Service/StocksService.cs Tue Feb 21 01:19:54 2012 +0700 +++ b/Stocks/Stocks.Service/StocksService.cs Tue Feb 21 17:05:47 2012 +0700 @@ -46,9 +46,9 @@ _serviceUrl = _configurationService.GetServiceUrl(symbolsCsv); } + public event PriceChangedEventHandler PriceChanged; public delegate void PriceChangedEventHandler(object sender, PriceChangedEventArgs e); - public event PriceChangedEventHandler PriceChanged; - protected virtual void RaisePriceChanged(Price price) + protected virtual void OnPriceChanged(Price price) { Stats.PriceChangeEvents++; @@ -128,7 +128,7 @@ { localPrice.PreviousPrice = localPrice.CurrentPrice; localPrice.CurrentPrice = webPrice.CurrentPrice; - RaisePriceChanged(localPrice); + OnPriceChanged(localPrice); } private void UpdateStats(Stopwatch timeToDownload, string webResponse)