Main Workflow / Using MEF

I am looking for a framework that will allow me to have a simple plugin system in my .NET application. It seems that MEF is the foundation that Microsoft supports and will become part of .NET 4 (it also seems to work with older versions of .NET with both a separate library and Mono).

I previously used Mono.Addins as a plugin for another project. The main idea is that I define a set of interfaces that become “extension points”, the plugins API, if you use the application.

Can I use MEF in a similar way? How can I get started with MEF, especially from the perspective of someone with experience working with Mono.Addins?

+3
source share
3 answers

Yes, and I posted an example of how you do what you are talking about with MEF in a CodeProject article: Creating an Extensible Application Using MEF, WPF, and MVVM

+3
source

Have you looked at the MEF CodePlex Site ? The programming guide has a good start.

+1
source

Will the IOC utility work for your needs? I found autofac really straight forward.

0
source

Source: https://habr.com/ru/post/1722366/


All Articles