Plugins - Added utility to get the calling plugin

Plugins - Removed IParameter overloads to avoid Ninject dependency in plugins
This commit is contained in:
SpoinkyNL committed 2020-11-04 23:10:26 +01:00
1 parent d59b36c3d1
commit c7f3a8283a
4 files changed
+62 -51

No files matched your search

@@ -70,10 +70,10 @@ namespace Artemis.Core.Services
List<PluginInfo> GetAllPluginInfo();
/// <summary>
/// Finds all enabled <see cref="Plugin" /> instances of <typeparamref name="T"/>
/// Finds all enabled <see cref="Plugin" /> instances of <typeparamref name="T" />
/// </summary>
/// <typeparam name="T">Either <see cref="Plugin" /> or a plugin type implementing <see cref="Plugin" /></typeparam>
/// <returns>Returns a list of plugin instances of <typeparamref name="T"/></returns>
/// <returns>Returns a list of plugin instances of <typeparamref name="T" /></returns>
List<T> GetPluginsOfType<T>() where T : Plugin;
/// <summary>
@@ -90,6 +90,12 @@ namespace Artemis.Core.Services
/// <returns></returns>
Plugin GetPluginByDevice(IRGBDevice device);
/// <summary>
/// Returns the plugin info of the current call stack
/// </summary>
/// <returns>If the current call stack contains a plugin, the plugin. Otherwise null</returns>
Plugin GetCallingPlugin();
#region Events
/// <summary>