Dynamic MEF isn't thread safe by nature - [Export] Bnaya Eshet

added by bnaya
12/4/2010 4:10:02 AM

0 Kicks, 180 Views

Dynamic MEF isn't thread safe by natureDynamic MEF isn't thread safe by nature this post focus a pitfall which you should be aware in order to avoid sporadic crashes. In general most of MEF operation are operate once at the application initialization stage, and it normally happens on a single thread. this may not be true when you need to dynamically load MEF parts (using GetExportedValue or SatisfyImportsOnce). unfortunately MEF underline is using non concurrent dictionary which is not thread ...


0 comments