Injecting MVC with MEF 2 in 2 Minutes
- Posted: Mar 21, 2012 at 12:21PM
- 37,571 views
- 18 comments
Loading user information from Channel 9
Something went wrong getting user information from Channel 9
Loading user information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
If you've wondered how to make sense of the alphabet soup and options available for Dependency Injection and Inversion of Control (DI/IoC) as well as how the Managed Extensibility Framework (MEF) can help you solve these problems, check out this screencast. In two minutes, you'll have a fully functioning DI/IoC-driven MVC site using MEF 2.0.
In this video, you'll see how you can get MEF running in an ASP.NET MVC site and how to successfully decouple the controller layer from the service infrastructure and allow for reuse of the service layer across multiple controllers. The Microsoft.MEF.CompositionProvider NuGet package put forth by the MEF team makes MEF an irresistible DI/IoC option for MVC developers.
Let Brady Gaster show you how to inject your MVC site using Visual Studio 11 and MEF 2.0 and quickly have more SOLID code.