Digitizeit-se / Harmonice

Plugin based integration service
Apache License 2.0
0 stars 0 forks source link

plugin version check that is same as plugin base class #25

Open guldmann opened 1 year ago

guldmann commented 1 year ago

When a plugin is loaded check that is derived from same pluginBase as the one used in running service

` var baseType = LoadedPlugin.GetType().BaseType; var pluginVersion = baseType.Assembly.GetName().Version;

var base = pluginBase.GetType(); var baseVersion = base.Assembly.GetName().Version

if(baseVersion != pluginVersion) error

`