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