.net – Can AddIns in MAF (System.AddIn) have constructor parameters

add-inmafnetsystem.addin

I need to pass configuration settings to an AddIn created using the Managed AddIn Framework (MAF, aka System.AddIn). Can a put a settings parameter in the AddIn's constructor?

Another option would be to create an Initialize() method, but then I have to remember to call it before doing any work with the AddIn.

Best Answer

Best way is to use Initalize() method, because the pipelines use the constructor parameters for passing contracts.

Related Topic