I’m using MEF in order to inject UnityContainer into the plugins in my application.
each one of the Plugins hold panels.
I want to transfer the Unity container into the panels also by MEF.
I need to use the Unity in the constructor of the panels.
The problem is that the Unity is not getting initialized.
So, I use the CompositionContainer.ComposeParts(panel) in the Plugin after I created the panel. The
problem is that I want to use the Unity in the constructor of the panels.
I don’t want to send the the UnityContainer or the CompositionContainer as a parameter in the panel’s constructor.
thanks
you dont have posted some code so i just assume:
if you do it that way:
if you do it this way