Jul 23, 2010 at 2:52 PM
Edited Jul 23, 2010 at 3:43 PM
Based on our understanding you need to communicate two modules without using event aggregator. There are 4 different ways for
communication supported by Prism out-of-the-box.
However, based on your specs you could use
Shared Services (see the
Shared Service section), which is also cross-module like Event Aggregator. From the documentation at MSDN:
Service instances are shared across modules, so you can share data and
pass messages between modules.
Therefore, it seems to be the right solution for you, and it is simple to use by registering your service, as shown in the following code:
protected void RegisterViewsAndServices()
_container.RegisterType<IMarketFeedService, MarketFeedService>(new ContainerControlledLifetimeManager());
For more information about this, you could take a look at the following documentation section:
Additionally, in the
Stock Trader RI, you'll find an example (see the RegisterViewsAndServices method in
Please let me know if this helps.