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.

kick it on DotNetKicks.com

Shout it

5 Responses to “Putting Prism-v2 extensibility to test. The standalone Silverlight Event Aggregator”

  1. Damian Schenkelman’s Blog » Blog Archive » Putting Prism-v2 extensibility to test (Part II). The Composite.Commands.Wpf assembly Says:

    [...] the first post of this series I blogged about how to extract the event aggregator into a single Silverlight [...]

  2. Fallon Massey Says:

    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.

  3. dschenkelman Says:

    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

  4. DotNetShoutout Says:

    Putting Prism-v2 extensibility to test. The standalone Silverlight Event Aggregator…

    Thank you for submitting this cool story - Trackback from DotNetShoutout…

  5. Damian Schenkelman’s Blog » Blog Archive » Composite Application Guidance for WPF & Silverlight (Prism-v2) Reference Implementation using Silverlight 3 Validation Says:

    [...] Putting Prism-v2 extensibility to test. The standalone Silverlight Event Aggregator [...]

Leave a Reply