A plug-in.
Наследование: HandleObject
Пример #1
0
 internal static void AddPlugin(Plugin plugin)
 {
     _loadedPlugins.Add(plugin);
     PluginLoaded?.Invoke(new PluginEventArgs(plugin.PluginType));
 }
Пример #2
0
 internal static void RemovePlugin(Plugin plugin)
 {
     _loadedPlugins.Remove(plugin);
     PluginFreed?.Invoke(new PluginEventArgs(plugin.PluginType));
 }
Пример #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();
 }