Пример #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();
 }
Пример #2
0
 internal static void RunPluginsUnloaded() => OnPluginsUnloaded?.Invoke();