Addresses code quality review of ed1c2d0:
- ILogger would collide with Microsoft.Extensions.Logging.ILogger and Serilog.ILogger
in any plugin file that imports both namespaces; renamed to IPluginLogger
- IAcDreamPlugin.Initialize now has an XML doc clarifying its lifecycle contract
14 lines
422 B
C#
14 lines
422 B
C#
// src/AcDream.Plugin.Abstractions/IAcDreamPlugin.cs
|
|
namespace AcDream.Plugin.Abstractions;
|
|
|
|
public interface IAcDreamPlugin
|
|
{
|
|
/// <summary>
|
|
/// Called exactly once, before <see cref="Enable"/>. The plugin should stash the
|
|
/// host reference and do any one-time setup that doesn't depend on a connected world.
|
|
/// </summary>
|
|
void Initialize(IPluginHost host);
|
|
|
|
void Enable();
|
|
void Disable();
|
|
}
|