/// <summary> /// Create an <see cref="Addin"/> instance. /// </summary> /// <param name="addinEngine"></param> /// <param name="addinFramework"></param> /// <param name="addinRecord"></param> internal Addin(AddinEngine addinEngine, AddinFramework addinFramework, AddinRecord addinRecord) { _addinEngine = addinEngine; _addinRecord = addinRecord; _addinContext = new DefaultAddinContext(addinFramework, this); _addinRuntime = new AddinRuntime(addinEngine.RuntimeAssemblyResolver, this); _addinFile = new AddinFile(addinRecord); _addinExtension = new AddinExtension(addinRecord, addinEngine, _addinContext); }
public static void Initialize(bool shouldRefresh, AddinConfiguration addinConfig) { _adnEngine = new AddinEngine(addinConfig); _adnEngine.Initialize(shouldRefresh); }