mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Changes to instantiate the plugin loader class from the custom plugin
This commit is contained in:
parent
a2ca41d965
commit
50d5850097
1 changed files with 2 additions and 2 deletions
|
|
@ -339,9 +339,9 @@ namespace PepperDash.Essentials
|
|||
{
|
||||
try
|
||||
{
|
||||
var plugin = type as IPluginDeviceConfig;
|
||||
if (plugin != null)
|
||||
if (typeof(IPluginDeviceConfig).IsAssignableFrom(type))
|
||||
{
|
||||
var plugin = (IPluginDeviceConfig)Crestron.SimplSharp.Reflection.Activator.CreateInstance(type);
|
||||
LoadCustomPlugin(plugin, loadedAssembly);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue