MEF2 how to ExportMetaData


hi,

i working @ project using mef1 works fine dynamically export metadata on different dlls.

now moving forward mef2 in did not see documentation on how handle 'exportmetadata".

do need create concrete class attributes metadata? still use attributes in targeted class ?

are there samples?

thanks


maggie

hi import dll partially in mef,

please check following provide sample mef exports, this:

conventions.fortype<mainwindow>()          .export<iview>(x => x.addmetadata("name", "main")) 

https://blogs.msdn.microsoft.com/bclteam/2011/11/01/getting-started-with-convention-based-part-registration-in-mef-2-nick/

best regards,

cole wu


we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place.
click here participate survey.



.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'