Can one AddIns call another AddIns?

Jul 16, 2008 at 5:23 PM
This is pretty straight forward as it's in the title. Once the Addins is running, can the current AddIns call another Addins?

Here is the scenario:
I have 4 addins that its job is to create a file for each Addins. and I want to have the 5th Addins which will act like a Controller Job (Batch) that will get all of the necessary data from the Database,  and possibly call the host again to Generate the file , which the host knows how to call the other Addins that creates the file.

All of the Addins will implement the same contract "ProcessFile(DataSet):void"

My other option is removing the 5th Addins and just put it in another assembly and call the host of ProcessFile to generate the file.

Thank you in advance.
Jul 23, 2008 at 1:23 AM

I'm not completely clear on your scenario but as long as the Host is the broker for all AddIn interactions you should be able to meet your needs through AddIns calling each other via the Host. An example of this may be found on my blog (http://blogs.msdn.com/jackg/archive/2008/03/10/extensibility-clients-and-services-calling-each-other.aspx).

Hope this helps,

JackG