Linker Plugin
A linker plugin is responsible for connecting the models loaded by the loader plugins by adding links in ScriptBee's Context.
Manifest
An example can be seen below:
kind
: The type of pluginentryPoint
: The relative path to the DLL containing the implemented interfaces for the respective plugins.version
: The version of the plugin
Linker Interface
Each linker must implement the IModelLinker
interface.
It receives the entire context to modify it and add links between the models.
public interface IModelLinker : IPlugin
{
public Task LinkModel(Dictionary<Tuple<string, string>, Dictionary<string, ScriptBeeModel>> context,
Dictionary<string, object>? configuration = default, CancellationToken cancellationToken = default);
public string GetName();
}
LinkModel
: Receives the entire context to modify it and add links between the models.GetName
: Returns the name of the plugin
Example
An example of a linker plugin can be found here