feat: modify plugin loading process

This commit is contained in:
Andrew Welker 2025-07-04 13:33:56 -05:00 committed by Neil Dorin
parent 04c4557528
commit aaa5b0532b
14 changed files with 147 additions and 189 deletions

View file

@ -1,6 +1,6 @@
using System;
using PepperDash.Essentials.Core.Config;
using System;
using System.Collections.Generic;
using PepperDash.Essentials.Core.Config;
namespace PepperDash.Essentials.Core
{

View file

@ -20,7 +20,7 @@ namespace PepperDash.Essentials.Core
/// </summary>
public ProcessorExtensionDeviceFactory() {
var assy = Assembly.GetExecutingAssembly();
PluginLoader.SetEssentialsAssembly(assy.GetName().Name, assy);
PluginLoader.AddLoadedAssembly(assy.GetName().Name, assy);
var extensions = assy.GetTypes().Where(ct => typeof(IProcessorExtensionDeviceFactory)
.IsAssignableFrom(ct) && !ct.IsInterface && !ct.IsAbstract);