About InitializeMarketHistory() : StockTraderRI

Topics: Prism v2 - Silverlight 3
Jun 1, 2010 at 12:24 PM


This is woth reference to the StockTraderRI application. In the class MarketHistoryService class , there is a method called InitializeMarketHistory(). What does this method does. It seems the datetime andvalue is taken out as a result.

I appreciate if anyone gives little more explanation on this method. Also guide me the technology used in this module.






Jun 11, 2010 at 10:51 PM

Hi Devasena,

The InitializeMarketHistory method fills a dictionary with all default market values grouped by the symbol name. It is something used at RI for displaying history prices of the stocks in a timeline.

Regarding the technologies used, this module was created to give guidance about modularity with Prism. On the other hand, internally it uses Unity as the Dependency Injection Container. For more information about the different approaches implemented in the RI you can check this article.

Please let me know if this helps.

Fernando Antivero