Unable to reinitialize the CompositionHost container. Once it has been initialized or created by default, it cannot be changed.
However, you can create an AggregateCatalog and use TypeCatalog with singleton as the only type and remove it from the collection when it is no longer needed.
This does not change the fact that after creating the βpartβ of the MEF, it is available to satisfy any other [Import] that it needs.
From MSDN :
Parts created by the default container to populate the import will be saved using the Managed Extensibility Framework (MEF) until the application shuts down. Long-term applications should use ExportFactory <T> to manage the life cycles of their parts.
source share