This project has moved. For the latest updates, please go here.

Assembly references and fragment order in container

Feb 23, 2011 at 11:47 AM

I'm using several assemblies, each exporting some IModuleInitializer.
At the start jf a program, all initializations are called:

foreach (var lazy in container.GetExports<IModuleInitializer>())
  IModuleInitializer moduleInitializer = lazy.Value;
  catch (Exception ex)

Now, I have, for example, Sells assembly
and SellsExtra - extending it.
SellsExtra references on Sells.

I need to make Sells Initializer to be called first,
and only then - Initializer from SellsExtra.
Is it possible somehow analyse here assembly dependencies in this code  ?