Table of Contents

Constructor CadPluginManager

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

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

loader CadPluginLoader

The loader of the runtime: new CadPluginAssemblyLoader() of OpenCAD2D.Wpf.

pluginFolder string

The 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 Plugins folder beside OpenCAD2D.Core.dll (Plugins).

settingsPath string

The JSON file of the startup list and the trusted folders; read when it exists, written on each change.

shadowFolder string

The 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.