This is a post I have had pending for a long time. As usual it came up after I saw this question in the Composite WPF & Silverlight forums at Codeplex.
The user wanted a lightweight download, and was only using the Event Aggregator from the CAL’s latest bits. I thought that this would really test Prism’s extensibility, so I created a single assembly which only contained things required by the Silverlight Event Aggregator.
| UPDATE: This assembly also works when using Silverlight 3 Beta version. |
The following picture will easen the process of explaining/understanding all the classes this assembly requires. It was taken using the .Net Reflector. (Clicking it will probably make it easier to read)
Afterwards I tested the correct functionality of this assembly using the EventAggregator Quickstart by replacing the events used in it with events from this new assembly.Everything worked like a charm, so Prism-v2 passed this “extensibility test”
Glenn Block has a post that explains how to perform Event Aggregation with MEF (with and without EventAggregator), so perhaps you could find that post interesting if you have read this far.
You can check out other posts in this series:
Standalone Silverlight Event Aggregator Binaries
Disclaimer
This assembly is provided “AS IS” with no warranties, and confers no rights.
Download
You can get the assembly here: Composite.EventAggregator.Silverlight.


May 14th, 2009 at 11:16 am
[...] the first post of this series I blogged about how to extract the event aggregator into a single Silverlight [...]
May 22nd, 2009 at 10:33 pm
Could you please provide the source code to produce this assembly?
I wouldn’t want to start using this, and then couldn’t convert it to work with Silverlight 3 when it ships.
Thanks.
May 26th, 2009 at 2:42 pm
Hi Fallon,
I have tested this assembly with the Silverlight 3 Beta version and it worked smoothly :).
If you need the source code of the assembly, you can download Prism from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=fa07e1ce-ca3f-4b9b-a21b-e3fa10d013dd&DisplayLang=en.
Based on the picture from my post, or using reflection on your own, you can check the classes that need to be compiled to create the assembly.
I hope this helps.
Damian
July 11th, 2009 at 5:05 pm
Putting Prism-v2 extensibility to test. The standalone Silverlight Event Aggregator…
Thank you for submitting this cool story - Trackback from DotNetShoutout…
July 15th, 2009 at 8:22 pm
[...] Putting Prism-v2 extensibility to test. The standalone Silverlight Event Aggregator [...]