improve plugin load
This commit is contained in:
17
Pilz.Plugins/PluginLoadInfo.cs
Normal file
17
Pilz.Plugins/PluginLoadInfo.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pilz.Plugins
|
||||
{
|
||||
public class PluginLoadInfo<TPluginInterface, TPluginRuntimeInfo> where TPluginInterface : class where TPluginRuntimeInfo : PluginRuntimeInfo<TPluginInterface>
|
||||
{
|
||||
internal List<TPluginRuntimeInfo> PluginsInternal { get; } = [];
|
||||
public Assembly Assembly { get; internal set; }
|
||||
public PluginLoadStatus Status { get; internal set; }
|
||||
public IEnumerable<TPluginRuntimeInfo> Plugins => PluginsInternal.AsReadOnly();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user