<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MEF on Bryan Avery</title><link>https://bryanavery.co.uk/categories/mef/</link><description>Recent content in MEF on Bryan Avery</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><copyright>© 2026 Bryan Avery.</copyright><lastBuildDate>Mon, 12 Mar 2012 10:01:00 +0000</lastBuildDate><atom:link href="https://bryanavery.co.uk/categories/mef/index.xml" rel="self" type="application/rss+xml"/><item><title>Using MEF in MVC to inject Controllers</title><link>https://bryanavery.co.uk/using-mef-in-mvc-3/</link><pubDate>Mon, 12 Mar 2012 10:01:00 +0000</pubDate><guid>https://bryanavery.co.uk/using-mef-in-mvc-3/</guid><description>&lt;p&gt;After travelling for a year I was interest to see if MEF would work with MVC, and after some digging around I found it can.&lt;/p&gt;&#10;&lt;p&gt;***UPDATED****&lt;/p&gt;&#10;&lt;p&gt;Added a CastleWindsor example&lt;/p&gt;&#10;&lt;p&gt;With any MEF you’ll need a Composition Factory which in this case I’ll place in the MEF directory, but it can be in a different project if required.&lt;/p&gt;</description></item></channel></rss>