mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-04 23:35:02 +00:00
Changes to instantiate the plugin loader class from the custom plugin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user