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#

System.String

Description Property#

Gets a description of the plugin.

string? Description { get; }

Property Value#

System.String

Name Property#

Gets the display name of the plugin.

string Name { get; }

Property Value#

System.String

PluginId Property#

Gets the unique identifier for the plugin.

string PluginId { get; }

Property Value#

System.String

Version Property#

Gets the version of the plugin.

string Version { get; }

Property Value#

System.String

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#

System.Threading.Tasks.Task

OnUnloadedAsync() Method#

Called when the plugin is being unloaded from the engine.

System.Threading.Tasks.Task OnUnloadedAsync();

Returns#

System.Threading.Tasks.Task