Window Service - Always provide current window as parent

Plugins - Allow self-binding of unregistered services
Plugins UI - Style settings window
This commit is contained in:
Robert committed 2021-11-13 00:23:09 +01:00
1 parent 26639ca8fd
commit b963aa0909
13 files changed
+92 -47

No files matched your search

+1 -2
View File
@@ -1,5 +1,4 @@
using System.IO;
using Artemis.Core.Services;
using Artemis.Core.Services;
using Artemis.Storage;
using Artemis.Storage.Migrations.Interfaces;
using Artemis.Storage.Repositories.Interfaces;
@@ -16,6 +16,7 @@ using McMaster.NETCore.Plugins;
using Ninject;
using Ninject.Extensions.ChildKernel;
using Ninject.Parameters;
using Ninject.Planning.Bindings.Resolvers;
using RGB.NET.Core;
using Serilog;
@@ -410,6 +411,9 @@ namespace Artemis.Core.Services
// Create the Ninject child kernel and load the module
plugin.Kernel = new ChildKernel(_kernel, new PluginModule(plugin));
// The kernel used by Core is unforgiving about missing bindings, no need to be so hard on plugin devs
plugin.Kernel.Components.Add<IMissingBindingResolver, SelfBindingResolver>();
OnPluginEnabling(new PluginEventArgs(plugin));
plugin.SetEnabled(true);