System.AddIn (Maf) Interconnection between addins

929 views Asked by At

I want to use MAF in my project because I need a robust add-in architecture. Yet I come to a point where I need to call methods of an add-in from an other add-in. How can I achieve this with a flexible manner in which some add-ins should have dependencies over other add-ins or just use other add-ins' functionality when available.

Maybe aggregation via host process?

Thank you in advance for your kind answers.

Ufuk.

2

There are 2 answers

0
Wim On BEST ANSWER

Publish / subscribe eventing, using the host process/context as the link.

I don't know MAF, but there must be some generic event you can raise from a plugin A with your custom eventdata to which plugin B can easily subscribe via the host/context.

That would keep it nicely loosely coupled.

0
Ufuk Altinok On

I found an example of achieving it.

http://kentb.blogspot.com/2008/06/maf-gymnastics-event-hub.html

Thank you for your answer Wim.