Constructor CadPluginManager
CadPluginManager(CadPluginLoader, string, string, string)
Makes the manager of the presenter's plugins, reading its startup list and trusted folders from settingsPath.
public CadPluginManager(CadPluginLoader loader, string pluginFolder, string settingsPath, string shadowFolder = null)
Parameters
loaderCadPluginLoaderThe loader of the runtime:
new CadPluginAssemblyLoader()of OpenCAD2D.Wpf.pluginFolderstringThe plugin folder, always trusted: each .dll directly in it and each folder below it that holds .dll files is loaded at start. The app gives its
Pluginsfolder beside OpenCAD2D.Core.dll (Plugins).settingsPathstringThe JSON file of the startup list and the trusted folders; read when it exists, written on each change.
shadowFolderstringThe folder the plugins' files are copied to and loaded from; a folder of this process's under the temporary folder where null, those left by processes that have ended deleted.
Exceptions
- ArgumentNullException
Thrown when the loader, the plugin folder or the settings path is null.