simplify PluginManager a bit more

This commit is contained in:
Pilzinsel64
2024-11-11 08:46:24 +01:00
parent 9b7c38ea85
commit eca1a4c7ca
7 changed files with 28 additions and 19 deletions

View File

@@ -2,10 +2,10 @@
namespace Pilz.Plugins;
public class PluginLoadInfo<TPluginInterface, TPluginRuntimeInfo> where TPluginInterface : class where TPluginRuntimeInfo : PluginRuntimeInfo<TPluginInterface>
public class PluginLoadInfo<TPluginInterface, TPluginRuntimeInfo> where TPluginInterface : class where TPluginRuntimeInfo : PluginRuntimeInfo
{
internal List<TPluginRuntimeInfo> PluginsInternal { get; } = [];
public Assembly Assembly { get; internal set; }
public Assembly? Assembly { get; internal set; }
public PluginLoadStatus Status { get; internal set; }
public IEnumerable<TPluginRuntimeInfo> Plugins => PluginsInternal.AsReadOnly();
}