.net - MEF [ImportMany] without Lazy<T,TM> -


is possible access export metadata in mef without storing ilist<lazy<t,tm>> parts, ilist<t> parts

no, cannot metadata after fact. must import along parts themselves.

think of import contract specifying needs of component. if needs access metadata of dependency, shouldn't hide that.

see nicholas blumhardt's post the relationship zoo, kind of relationship between components described a needs know x b before using it. point metadata aspect of relationship between components, not should handled separately somehow.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -