|
Hello and thanks for the answer.
I put the code in the call for each window and now it's working.
_container.SatisfyImportsOnce(Me)
One question. With lot's of imports, this code will not be slow? Right now I have just one Export and was very fast. Imagine that I have 100 in several assemblies? How it's gonna work?
I try to use the GetExports() but what will be the parameters? I already try:
Dim test = _container.GetExports(Of Object, IModalWindowMetadata)()
Dim test = _container.GetExports(Of Object, IModalWindowMetadata)(modalWindowName)
Dim test = _container.GetExports(Of Object)(modalWindowName)
in all cases the test variable has nothing, Count = 0. My Lazy definition it's:
<ImportMany("ModalWindow", AllowRecomposition:=True, RequiredCreationPolicy:=CreationPolicy.NonShared)>
Protected Property ModalWindowsLazy As IEnumerable(Of Lazy(Of Object, IModalWindowMetadata))
what should be the parameters in the GetExport to get the right export and just reload that export?
tkx one more time
Paulo Aboim Pinto
|