MEF Import Composition Issues?

I your specific case I would simply Export SubForm as its concrete type and Import in in Module. In that case all of its imports will be satisfied. Although if you expect to call DoSomething more than once then you will run into issues.

I your specific case I would simply Export SubForm as its concrete type and Import in in Module. In that case all of its imports will be satisfied. Although if you expect to call DoSomething more than once then you will run into issues.

Another way people sometimes do this is to manually add the CompositionContainer to itself under the contract ICompositionService in your host and then have your module import ICompositionService and then everytime you create a SubForm you simply pass your object instance into ICompositionService. SatisifyImportsOnce to get its Imports satisfied.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions