Home > View Post

VBUG4Thought - Building an AppMarket with the Managed Extensibility Framework

Yesterday I presented at VBUG4Thought which was VBUG's annual spring conference.

It was a really enjoyable day in a fantastic location with some great speakers (Eric Nelson, Hadi Hariri, Jon Skeet, Gill Cleeren and Dave Sussman).

I hosted a talk entitled "Experiment: Building an AppMarket with the Managed Extensibility Framework (The MEF) and .NET 4.0". I had a lot of fun and hopefully demonstrated how great I think The MEF is :)

Unfortunately my final demo blew for some unknown reason. I'm still not sure what went wrong because everything worked fine after a reboot and without touching a line of code (no, really! I'm not lying!).

Having played around since I think my WcfSvcHost was just being incredibly slow to get started and if I'd have had a little more patience with it the demo would have worked fine. Oh well. Why not try it for yourself?

Here's the code and slide decks:

Remember - this is just demoware and a bit of fun. There was a lot of stuff we didn't take seriously during the exercise (like Security!).

Toward the end Jon Skeet (I was tempted to ask for his autograph :) suggested integrating the reactive extensions to do the file watching for the recomposition. We'll follow up with an example.

Thanks again

Tags: C# MEF

Josh Post By Josh Twist
4:33 AM
30 Apr 2010

» Next Post: Silverlight Security: Securing Your Silverlight Applications
« Previous Post: How to download and crack a Xap in Silverlight

Comments are closed for this post.

Posted by Dave Lowe @ 02 May 2010 2:37 AM
Hi Josh,
I was at VBUG and was very impressed with your demo - just downloaded it and it works like a charm. Just got to think of something to cool do with MEF now.

Posted by josh @ 03 May 2010 10:59 AM

Once you slip into the MEF groove you'll see opportunities all over the place :)

Posted by Tad @ 06 May 2010 12:25 PM
Hey Josh, this is FASCINATING stuff! Say.. can't figure out why Contoso.Pong, Fabrikam.Electionomotron, Fabrikam.Fakebook DLLs aren't being loaded, probably compiled with a different AppMarket.Contracts. Any idea where I can get the source for those?

Posted by Ido Ran @ 30 Jun 2010 11:36 AM
The presentation link is broken, hope it will be fixed soon.

Thank you,

Posted by Josh @ 01 Jul 2010 5:12 AM
Hi Ido,

That was down to the MIME type being lost following a recent migration at my hosting folk (not impressed with them, it has to be said). Thanks for calling it out - should be working now.



Posted by Ido Ran @ 01 Jul 2010 9:24 AM
Hi, Thanks - It's working great.
That is interesting combination to use WPF with MEF - really close to WPF with DI (like you said).

I think the .NET community should try to learn from the Java community - both the successes and the failures, and this will help to decide what to do next.
I'm using super-simple IoC container in my application and it does the trick for now, but I do look for ways to improve and MEF is looking promising.

Thank you for the post, presentation and the code,

© 2005 - 2022 Josh Twist - All Rights Reserved.