public PluginManager(Plugins p) { plugins = p; InitializeComponent(); }
void plugins_PluginIncompatible(Plugins sender, IPlugin plugin) { mainlogger.Error(string.Format("Plugin {0} is incompatible with the current interface version {1}", plugin.Name, Plugins.InterfaceVersion.ToString() )); }
void plugins_PluginLoaded(Plugins who, IPlugin plugin) { mainlogger.Info(string.Format("Plugin loaded: {0}, version: {1}", plugin.Name, plugin.Version.ToString() )); }
void plugins_AssemblyLoaded(Plugins who, System.Reflection.Assembly assembly) { mainlogger.Info(string.Format("Assembly loaded: {0}, trusted: {1}, version: {2}", assembly.FullName, (assembly.IsFullyTrusted ? "Yes" : "No"), assembly.ImageRuntimeVersion.ToString() )); }