Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 internal static void RunPluginUnloaded(PointBlankPlugin plugin) => OnPluginUnloaded?.Invoke(plugin);