Table of Contents

Class PluginEntryConvention

Namespace
SharpConsoleUI.Plugins
Assembly
SharpConsoleUI.dll

Defines the convention that plugin assemblies must follow for discovery. Each plugin DLL must contain a public static class named "PluginEntry" with a static method "CreatePlugins()" returning IEnumerable<IPlugin>.

public static class PluginEntryConvention
Inheritance
PluginEntryConvention
Inherited Members

Examples

// In your plugin assembly: public static class PluginEntry { public static IEnumerable<IPlugin> CreatePlugins() => [new MyPlugin(), new AnotherPlugin()]; }

Fields

EntryClassName

The expected class name that plugin assemblies must define.

public const string EntryClassName = "PluginEntry"

Field Value

string

FactoryMethodName

The expected method name on the entry class.

public const string FactoryMethodName = "CreatePlugins"

Field Value

string