Using MEF with Castle Windsor

It’s been a while since I last posted but that’s because I’ve been really busy completing year 4 of my degree (only 2 more to go!) and starting a new job! Anyway I finally got around to posting some of the new stuff I’ve been learning and for this instalment I’ve created a video cast on the basics of getting MEF to integrate with Castle Windsor.

Why would you do that I hear you ask? Apart from it being pretty cool ;) It means that you don’t have one central place that you are registering everything with Windsor. Each project takes care of it’s own registration making the application less tightly coupled and easier to extend. I think it looks pretty tidy and there is so much more you can do with it than I’ve done with this little app but it’s just there to serve as a foundation. Have a play see what you think and let  me know about the interesting things you’ve done with it. I’ve uploaded the code here if you want to pull it down and have a play.

S :)

If the below video isn’t showing you can seei it on vimeo here or youtube here.

Using MEF with Castle Windsor from Sara on Vimeo.

Filed under: Technical, , ,

2 Responses

  1. The Morning Brew - Chris Alcock » The Morning Brew #647 Says:

    [...] Using MEF with Castle Windsor – Sara Stephens explores integrating MEF with the Castle Windsor IOC container to allow you to spread the registration of types in the Windsor container across multiple projects helping to reduce coupling. Sara includes the code and a screencast which explains the concept and code. [...]

    Posted on July 21st, 2010 at 07:35

  2. Howard van Rooijen Says:

    Nice screencast. V similar to Who-Can-Help-Me’s way of registering types (which will become the default for Sharp Architecture 2.0). I wrote some background on this at: http://bit.ly/4bVCmL – there’s a useful comment at the bottom of the post from one of the Windsor team.

    Howard

    Posted on July 21st, 2010 at 14:15

Leave a Reply