Zeres Plugin Library |top| -
[Plugin("PluginB", DependsOn = new[] "PluginA" )] public class PluginB : PluginBase ... The library includes a lightweight event aggregator:
loader = new PluginLoader("./Plugins", this); loader.LoadPlugins(); foreach (var plugin in loader.Plugins) plugin.OnEnable();
private IAppHost host;
public void Start()
// SharedContracts.dll public interface IAppHost zeres plugin library
private PluginLoader loader;
this.host = host as IAppHost; host.Log("HelloWorld plugin loaded"); foreach (var plugin in loader.Plugins) plugin.OnEnable()
host.Log("Plugin enabled - Hello, world!");