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();
 }