public void Init() { plugin = new Mock<IPlugin>(); manager = new PluginManager(new Lazy<IPlugin, IPluginMetadata>[] { new Lazy<IPlugin, IPluginMetadata>(() => plugin.Object, new PluginAttribute("test")) }); }
public void TestMethod1() { var plugins = new List<Lazy<IPlugin, IPluginMetadata>>(); plugins.Add(new Lazy<IPlugin, IPluginMetadata>(() => new CpuPlugin(), new PluginAttribute("cpu"))); var manager = new PluginManager(plugins); var runner = new PluginRunner(manager); runner.Run(); }
public PluginRunner(PluginManager manager) { this.manager = manager; }
public Collectd(IConfigProvider provider, PluginManager manager, IPluginHost pluginHost) { this.configProvider = provider; this.manager = manager; this.pluginHost = pluginHost; }