mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +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
|
try
|
||||||
{
|
{
|
||||||
var plugin = type as IPluginDeviceConfig;
|
if (typeof(IPluginDeviceConfig).IsAssignableFrom(type))
|
||||||
if (plugin != null)
|
|
||||||
{
|
{
|
||||||
|
var plugin = (IPluginDeviceConfig)Crestron.SimplSharp.Reflection.Activator.CreateInstance(type);
|
||||||
LoadCustomPlugin(plugin, loadedAssembly);
|
LoadCustomPlugin(plugin, loadedAssembly);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user