.NET Framework Bookmark and Share   
 index > Managed Extensibility Framework > Order of ImportCompleted
 

Order of ImportCompleted

If I have an object A which imports object B which in turn imports object C, it seems that object B's ImportCompleted() should be called before object A's ImportedCompleted(). But this does not seem to be the case with the current version(B's is called after A's). Is a current limitation, the intended implementation, or a bug in my code?


Thanks for any information.

ccifra

Thanks for the feedback.

In the current implementation the order of the callsare sort of indeterministic (it is based on the order they were added to the container). ImportCompleted actually gets called for everyoneafter the entire composition has completed, not after an individual object composition has completed.

We are aware of the issue and I would expect it to be fixed to something very similar to what you describe.


Blog: http://weblogs.asp.net/whaggard
Wes Haggard

Thanks for the feedback.

In the current implementation the order of the callsare sort of indeterministic (it is based on the order they were added to the container). ImportCompleted actually gets called for everyoneafter the entire composition has completed, not after an individual object composition has completed.

We are aware of the issue and I would expect it to be fixed to something very similar to what you describe.


Blog: http://weblogs.asp.net/whaggard
Wes Haggard

You can use google to search for other answers

Custom Search

More Threads

• Do you will support event subscribe and publish in future vesion fo MEF?
• MEF and singletons
• What is Managed Extensibility Framework and its relationship with Enterprise Library?
• Looking for example of some usercontrol/tabitem exporting a ToolBar object
• Several contributors to unity configuration in app.config ?
• How to import all implementations of specified interface.
• Derived Classes & ExportProperty
• Unity IoC Newbie - Constructor Injection fail!
• CompositionContainer & AOP
• Do MEF support WPF elements composition?