mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 21:16:48 +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
|
|
@ -21,7 +21,7 @@ namespace PepperDash.Essentials
|
|||
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