mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-15 05:27:16 +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
|
|
@ -20,7 +20,7 @@ namespace PepperDash.Essentials.Devices.Common
|
|||
public DeviceFactory()
|
||||
{
|
||||
var assy = Assembly.GetExecutingAssembly();
|
||||
PluginLoader.SetEssentialsAssembly(assy.GetName().Name, assy);
|
||||
PluginLoader.AddLoadedAssembly(assy.GetName().Name, assy);
|
||||
|
||||
var types = assy.GetTypes().Where(ct => typeof(IDeviceFactory).IsAssignableFrom(ct) && !ct.IsInterface && !ct.IsAbstract);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue