mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue