Combining MEF and IoC container

Posted by Einar Ingebrigtsen on Stack Overflow See other posts from Stack Overflow or by Einar Ingebrigtsen
Published on 2010-04-22T12:45:38Z Indexed on 2010/04/22 15:23 UTC
Read the original article Hit count: 381

Filed under:
|
|

I primarily use NInject as my IoC container, and is very happy with it - don't want to change that. But some things I want to import using MEF. The thing is, I want the imports to created by the IoC container as the imports can have dependencies to things that I've registered in the NInject IoC.

So, my question is: can I import the type of exports in some way, so I can hand it over to NInject for creation or is there an object factory of some kind that I can override in MEF?

© Stack Overflow or respective owner

Related posts about c#

Related posts about MEF