Docs · API reference · Motus.Abstractions
IPlugin Interface#
Base interface for all Motus plugins.
public interface IPlugin
Properties#
Author Property#
Gets the author of the plugin.
string? Author { get; }
Property Value#
Description Property#
Gets a description of the plugin.
string? Description { get; }
Property Value#
Name Property#
Gets the display name of the plugin.
string Name { get; }
Property Value#
PluginId Property#
Gets the unique identifier for the plugin.
string PluginId { get; }
Property Value#
Version Property#
Gets the version of the plugin.
string Version { get; }
Property Value#
Methods#
OnLoadedAsync(IPluginContext) Method#
Called when the plugin is loaded into the engine.
System.Threading.Tasks.Task OnLoadedAsync(Motus.Abstractions.IPluginContext context);
Parameters#
context IPluginContext
The plugin context for registering extensions.
Returns#
OnUnloadedAsync() Method#
Called when the plugin is being unloaded from the engine.
System.Threading.Tasks.Task OnUnloadedAsync();