top of page

Zeres Plugin | Library

public void Log(string message) => Console.WriteLine($"[HOST] message"); public string GetConfig(string key) => ConfigurationManager.AppSettings[key]; using ZeresPluginLibrary; [Plugin("HelloWorld", Author = "Dev", Version = "1.0.0")] public class HelloWorldPlugin : PluginBase

Compile the plugin to a DLL and drop it into the host’s ./Plugins folder. The host auto-detects it on next start. Advanced Usage Dependency Between Plugins If PluginB depends on PluginA, use the DependsOn property: zeres plugin library

this.host = host as IAppHost; host.Log("HelloWorld plugin loaded"); public void Log(string message) => Console

using ZeresPluginLibrary; public class MyApplication : IAppHost public void Log(string message) =&gt

[Plugin("PluginB", DependsOn = new[] "PluginA" )] public class PluginB : PluginBase ... The library includes a lightweight event aggregator:

  • Facebook
  • YouTube
bottom of page