Search code examples
.netadd-insystem.addinmaf

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


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.


Solution

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