public WCellAddonContext TryLoadAddon(string libName) { WCellAddonContext contextByName = WCellAddonMgr.GetContextByName(libName); if (contextByName != null) { return(this.LoadAndInitAddon(contextByName.File)); } if (!libName.EndsWith(".dll", StringComparison.InvariantCultureIgnoreCase)) { libName += ".dll"; } return(this.LoadAndInitAddon(libName)); }
public static IWCellAddon GetAddon(string shortName) { return(WCellAddonMgr.GetContextByName(shortName)?.Addon); }