Search code examples
c#asp.net-mvcmef

How can we use MEF in MVC?


I am a Silverlight developer and have used MEF in MMVM pattern in Silverlight. How can we use MEF in Asp.Net MVC application? How do I begin? There is no CompositionIniliazer.SatisfyImports. How do I begin with MEF?

Thanks in advance :)


Solution

  • Take a look to Implementing MEF with ASP.NET MVC? SO post.
    Also MEF and ASP.NET MVC sample from http://blogs.msdn.com will be helpful for you.
    You will find more posts here.