I'm just starting to deal with MEF. The task is this. There is an application that processes data. Data is taken from the database. But I am not sure of the choice of base, so I decided to provide for extensibility and the possibility of choosing the right base. I was looking for how to implement this, the choice fell on MEF. But not everything is clear to me.
- How to get an interface to be implemented in a third-party project (when writing a plugin)?
- Where does the plugin get the data types used in the project? Well, for example, a plugin should return an object of type MyClass. Where does the plugin have to get its designer, etc.?
- Can I write a plugin outside of the framework?