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

    Published by on May 8th, 2009 1:29 pm under Composite Application Guidance for WPF & SL, Event Aggregation, p&p, Patterns & Practices, Prism-v2, Silverlight

    6 Comments

    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

    Tags: , , , , , ,

    • Fallon Massey

      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.

    • dschenkelman

      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

Archives

Categories