arg
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>2.1.6</Version>
|
<Version>2.1.7</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ namespace Pilz.Plugins
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Activator.CreateInstance(type, GetConstructorFlags(), null, parameters, null) is TPluginInterface plugin)
|
if (Activator.CreateInstance(type, parameters) is TPluginInterface plugin)
|
||||||
{
|
{
|
||||||
if (plugin is IPluginLateInitialization pluginLateInit)
|
if (plugin is IPluginLateInitialization pluginLateInit)
|
||||||
pluginLateInit.LateInit();
|
pluginLateInit.LateInit();
|
||||||
@@ -206,10 +206,5 @@ namespace Pilz.Plugins
|
|||||||
else
|
else
|
||||||
result.Status = PluginLoadStatus.NoValidPlugin;
|
result.Status = PluginLoadStatus.NoValidPlugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual BindingFlags GetConstructorFlags()
|
|
||||||
{
|
|
||||||
return BindingFlags.Public;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user