Multiple Instances of a single MEF DLL
Posted
by Travyguy9
on Stack Overflow
See other posts from Stack Overflow
or by Travyguy9
Published on 2010-05-20T22:19:47Z
Indexed on
2010/05/20
22:20 UTC
Read the original article
Hit count: 623
Apparently .NET 4.0 does not have the PartCreator/ExportFactory for non-SL. Which is something I think I need for this.
I was wondering if someone can help me (with an example please) of how to create multiple instances of the EXPORTED type in a DLL. Basically say I have a DLL that contains a type ConsoleLogger and it uses the interface ILogger (which I import/export through MEF)...How would I create an instance of ConsoleLogger whenever I wanted to? Also..Is this even possible?
© Stack Overflow or respective owner