mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: modify plugin loading process
This commit is contained in:
parent
04c4557528
commit
aaa5b0532b
14 changed files with 147 additions and 189 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue