A plug-in.
Inheritance: HandleObject
Exemplo n.º 1
0
 internal static void AddPlugin(Plugin plugin)
 {
     _loadedPlugins.Add(plugin);
     PluginLoaded?.Invoke(new PluginEventArgs(plugin.PluginType));
 }
Exemplo n.º 2
0
 internal static void RemovePlugin(Plugin plugin)
 {
     _loadedPlugins.Remove(plugin);
     PluginFreed?.Invoke(new PluginEventArgs(plugin.PluginType));
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Free a Bass plug-in.
 /// </summary>
 /// <param name="plugin">Bass plug-in object.</param>
 public static void FreePlugin(Plugin plugin)
 {
     plugin?.Dispose();
 }