public void ShutdownPlugins() { Log.Write(Log.Type.PLUGIN, "Shutting down plugins for handler " + _parentHandler.Name); foreach (IPlugin plugin in _activePlugins) { Log.Write(Log.Type.PLUGIN, "Shutting down plugin " + Plugin.GetVersionedFullName(plugin.GetType())); plugin.Shutdown(); OnPluginUnloaded?.Invoke(plugin); } _activePlugins.Clear(); OnPluginsUnloaded?.Invoke(); }
internal static void RunPluginsUnloaded() => OnPluginsUnloaded?.Invoke();