Injecting MVC with MEF 2 in 2 Minutes
- Posted: Mar 21, 2012 at 12:21 PM
- 28,010 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.