Yet another simplification of Prism’s EventAggregator syntax part II–mocking extension methods

After my last post, I had quite a healthy discussion with Alex Hung (@alexhung) on you guessed it, testability and mocking. Alex’s observation was although my extension methods were easy to use, they were difficult to test. He had gone and implemented a similar user experience but through using a custom wrapper which added Publish…

3

Yet another simplification of Prism’s EventAggregator syntax

It’s been quite a while since I worked with Prism’s EventAggregator. Today however I need to use it. As soon as I started to write my code, I heard my friend Jeremy Miller in my head saying how much he hates the ceremony of  GetEvent<> pattern that Prism’s EA introduces. What he is talking about…

0

MEF and Prism exploration, MEF module loading

About a month ago I posted some ideas around MEF and Prism together. As part of the post, I presented 2 high-level scenarios for MEF/Prism integration (and there are likely more) Use Prism with MEF as an add-on for extensibility. That is make modules extensible through MEF.  You can think of this as the “Two…

0

MEF and Prism, to be or not to be.

Now to the question, what is the story on Prism and MEF? I am getting asked this now several times a day, more so than the IoC question. I am happy to say we’re working with p&p to come up with a good answer. Note: This is still a work-in-progress, but here’s the thinking on this…

10

Upcoming talks at NDC in Oslo and Poland

Next week, I am heading to Europe for two weeks to give several talks. My first stop is NDC 2009, where I’ll be delivering the following talks: Framework Design Guidelines Building Maintainable Enterprise Applications with Silverlight and WPF Building openly extensible applications with .NET Framework 4.0 NDC looks like an amazing event with a great…

1

Event Aggregation with MEF (with and without EventAggregator)

The title probably sounds like an oxymoron, but it is not. Recently there was a question on our CodePlex forums from Denis Vuyka about whether or not MEF supports anything like EventBroker for pub/sub type communication. Asking such a question makes a lot of sense, as if you are building open-ended systems of extensions, you…

3

Bringing Prism to WinForms

Brian Noyes just posted a set of Composite Extensions for WinForms which includes a working and very simple (see below) sample. The sample illustrates: Bootstrapping with Unity Module Loading Event Aggregation Simple Regions It’s great to see that Brian is investing the effort to give customers another way to build composite apps with WinForms. As…

1

More MEF Samples and launch of MEF contrib.

The past few weeks, the momentum has picked up around samples using MEF. In my last post I mentioned a few. Now today two great posts. First, Brad A (my awesome boss) has gone and done a really nice MEF 101 post. Kudos to Brad for finding the time out of his ultra busy schedule…

1

I am speaking at Øredev

This year I’ll be skipping an awesome visit to Barcelona to head on and be with friends in Malmo, Sweden at the next Øredev. I’ll be speaking on the usual suspects and some new ones Building maintainable enterprise WPF applications using Composite Application Guidance Opening up your application with the Managed Extensibility Framework Microsoft and…

1

MSDN Article on "Prism" went to press

A few months ago I wrote an MSDN article on the new Composite Application Guidance (which will always be Prism to me 🙂 ) which was just published. In the article I talk about Composite Applications in WPF in general, several design patterns in play, and specific ways to leverage WPF in doing so. I…

2