↓ Skip to main content

MEF

Using MEF in MVC to inject Controllers

·2 mins
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. ***UPDATED**** Added a CastleWindsor example 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.