Skip to main content
Version: v0.1

Interface IPluginEntrypoint

Description​

When initializing plugins, Executor will read this class and get necessary data.

When loading and unloading the plugin, there are also methods to invoke.

Properties​

NameData TypeDescription
IdstringThe unique identifier of the plugin.
NamestringThe name of the plugin.
DescriptionstringThe description of the plugin.
AuthorstringThe author of the plugin.
VersionstringThe version of the plugin.
Dependenciesstring[]The required dependencies of the plugin. They will be loaded before this plugin loads.
OptionalDependenciesstring[]The optional dependencies of the plugin.
SupportedLanguageIdstring[]The supported language IDs of the plugin.

Methods​

Load plugin​

Signature​

Task Load(ILogger logger);

Parameters​

  • logger: ILogger: Give a logger for plugin to log something to output.

Usage​

Invoked when Executor want's to load the plugin.

Unload plugin​

Signature​

Task Unload();

Usage​

Invoked when executor want's to unload the plugin.