I would like to screw the plug-in places in order to explicitly separate the applied logic from the system logic.
I looked at the two main options out of the box - MAF and MEF. The second one looks much simpler and more intuitive; I didn’t understand how to make plug-ins composite.
I am writing a site parser, respectively - on a plugin on a site or even on a couple of sites at once. The question arises - is it possible to arrange the requirements like that?
Those. when loading a conditional ISite implementation, ISite need to find the corresponding ILogin and INHibernateMapping . One class, as described in simple examples, does not suit me, I have at least three of them for a valid entity. Can I describe such dependencies in MEF in general, or do I have to create some kind of common IPlugin interface, which will contain all the related interfaces and use import / export only for the common IPlugin interface?
UPD: the main case - when all the necessary interfaces are still implemented in one assembly. If possible - in different.