Exclude abstract types from plugin scan
This commit is contained in:
@@ -385,6 +385,9 @@ namespace Torch.Managers
|
|||||||
if (!type.GetInterfaces().Contains(typeof(ITorchPlugin)))
|
if (!type.GetInterfaces().Contains(typeof(ITorchPlugin)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (type.IsAbstract)
|
||||||
|
continue;
|
||||||
|
|
||||||
_log.Info($"Loading plugin at {type.FullName}");
|
_log.Info($"Loading plugin at {type.FullName}");
|
||||||
|
|
||||||
if (pluginType != null)
|
if (pluginType != null)
|
||||||
|
Reference in New Issue
Block a user