Table of Contents

Method Load

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

Load(string, IReadOnlyList<string>, string)

Loads a plugin's assemblies from the copies of its files the manager made (its shadow copy). An assembly the presenter has itself, as OpenCAD2D, is not loaded a second time: the plugin is given the presenter's.

public abstract IReadOnlyList<Assembly> Load(string name, IReadOnlyList<string> files, string probeFolder)

Parameters

name string

The plugin's name, which names its load context.

files IReadOnlyList<string>

The full paths of the .dll files to load, in ordinal order, all in one folder of copies.

probeFolder string

The folder a dependency missing beside the copies is copied from when it is asked for: the folder of a bare .dll; null where the copies hold all of the plugin's files.

Returns

IReadOnlyList<Assembly>

The assemblies loaded, in the order of the files; those the presenter has itself left out.