Thread-Safety

Aug 13, 2009 at 7:13 AM

Is MEF considered thread safe?  Can I use the same CompositionContainer from multiple threads?

Aug 13, 2009 at 3:15 PM

In last drop of MEF, the CompositionContainer is not considered thread safe. Future drops, however, will be.

For now, if you share the same container with multiple threads, make sure you lock before accessing it. If you are pulling on Lazy exports, make sure these are all pulled from the same thread.

Jan 20, 2010 at 2:44 PM

Is thread safety currently still an issues? I'm not sure which version we have but the Assembly Version of the file is 2009.4.6.0, is this version thread safe?