Open rjperes opened 5 years ago
Hello? Anybody home?
What does it mean to instantiate the plugins? Are there some docs you can point me to that explain that?
When GetExports is called, does it not instantiate any components/plugins/parts/whateveryouwanttocallit? What does it use - Activator.CreateInstance, ConstructorInfo.Invoke, or what? What I'm asking is, how can I replace this behavior.
That's what I was expecting. Can you point us to some code?
Is that a joke, @richlander? You are asking me for exactly what I'm asking!
Assuming that MEF does this, which it obviously does, as it instantiates parts, I am asking how to change this!
Is it possible to do manual instantiation of discovered plugins with MEF? If so, where can I find some more information? To be clear, I would like that plugins instantiated by the CompositionContext.GetExports method be instantiated by myself.
Thanks!