mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Data model debug - Added semi support for lists
This commit is contained in:
1 parent
796c0dc671
commit
c80e5e42aa
11 files changed
+210
-74
No files matched your search
@@ -99,6 +99,11 @@ namespace Artemis.Core.Services.Interfaces
|
||||
/// </summary>
|
||||
event EventHandler<PluginEventArgs> PluginUnloaded;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a plugin is being enabled
|
||||
/// </summary>
|
||||
event EventHandler<PluginEventArgs> PluginEnabling;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a plugin has been enabled
|
||||
/// </summary>
|
||||
|
||||
@@ -287,10 +287,11 @@ namespace Artemis.Core.Services
|
||||
|
||||
public void EnablePlugin(Plugin plugin, bool isAutoEnable = false)
|
||||
{
|
||||
_logger.Debug("Enabling plugin {pluginInfo}", plugin.PluginInfo);
|
||||
OnPluginEnabling(new PluginEventArgs(plugin.PluginInfo));
|
||||
|
||||
lock (_plugins)
|
||||
{
|
||||
_logger.Debug("Enabling plugin {pluginInfo}", plugin.PluginInfo);
|
||||
|
||||
try
|
||||
{
|
||||
plugin.SetEnabled(true, isAutoEnable);
|
||||
@@ -402,6 +403,7 @@ namespace Artemis.Core.Services
|
||||
public event EventHandler<PluginEventArgs> PluginLoading;
|
||||
public event EventHandler<PluginEventArgs> PluginLoaded;
|
||||
public event EventHandler<PluginEventArgs> PluginUnloaded;
|
||||
public event EventHandler<PluginEventArgs> PluginEnabling;
|
||||
public event EventHandler<PluginEventArgs> PluginEnabled;
|
||||
public event EventHandler<PluginEventArgs> PluginDisabled;
|
||||
|
||||
@@ -425,6 +427,11 @@ namespace Artemis.Core.Services
|
||||
PluginUnloaded?.Invoke(this, e);
|
||||
}
|
||||
|
||||
protected virtual void OnPluginEnabling(PluginEventArgs e)
|
||||
{
|
||||
PluginEnabling?.Invoke(this, e);
|
||||
}
|
||||
|
||||
protected virtual void OnPluginEnabled(PluginEventArgs e)
|
||||
{
|
||||
PluginEnabled?.Invoke(this, e);
|
||||
|
||||
Reference in new issue
Block a user