I currently have a "PlugInFolder" folder where I want to copy my custom plugin as a DLL. Each plugin implements my IPlugIn interface.
I want to get them at runtime with Windsor Castle.
I tried something like this to no avail:
CastleContainer.Instance .Install( FromAssembly.InDirectory(new AssemblyFilter("PlugInFolder")) ); CastleContainer.Instance.Register(Component.For<IPlugIn>()); IPlugIn[] plugIn= CastleContainer.Instance.ResolveAll<IPlugIn>();
I get this error:
Type ImageEditorInterfaces.IPlugIn is abstract. As such, it is not possible to instansiate it as implementation of service ImageEditorInterfaces.IPlugIn.
source share