Implementing MEF with ASP.NET MVC?

Posted by mark smith on Stack Overflow See other posts from Stack Overflow or by mark smith
Published on 2009-04-17T14:09:34Z Indexed on 2010/06/01 21:23 UTC
Read the original article Hit count: 243

Filed under:
|
|
|

I am trying to find out if anyone has any experience or ideas of using MEF (Managed Extensible Framework (Microsoft's new plugin framework) with ASP.NET MVC. I need to create a standard ASP.NET MVC, which I have. But I need to offer additional functionality i.e. Views and Controllers, etc, depending on if I add a plugin. It doesn't need to be dynamically compiled i.e. source code... but a DLL that i put into the system..

Is there any way to dynamically load a DLL when the app starts, and then MERGE a VIEWS and CONTROLLERS with the main system? I don't know if i am on the right track here.

Then, I suppose in the "STANDARD" views that come with the app, I can use an "IF THEN" to find out if a plugin is loaded and MERGE in a user control.

Well, I'm talking out loud here, but I think you understand what I am getting at.

Any ideas?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about plugins