Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public event EventHandler Updated;
- protected void UpdatePrice(string tickerSymbol, decimal newPrice, long newVolume)
- {
- _priceList[tickerSymbol] = newPrice;
- _volumeList[tickerSymbol] = newVolume;
- if(Updated != null)
- Updated(this, new MarketFeedEventArgs(tickerSymbol, newPrice, newVolume));
- }
Add Comment
Please, Sign In to add comment