In summary:
- I've undefined of unknowed IProducerPlugin implementations on several assemblies located on a plugins folder.
- I've a Core object stores a list of current registered users.
- Core is Composition Root.
So, I need:
- To create as many IProducerPlugin inherited class objects as the number of registered users.
- When a new user is un/registered I need to create / release these objects.
In order to register my "plugins":
this.Kernel.Bind(b => b.FromAssembliesMatching("*")
.SelectAllClasses()
.InheritedFrom(typeof(Extensibility.IProducerPlugin))
.BindAllInterfaces());
I'm not quite figuring out how to implement this.
Could you help me please?
I'll appreciate a LOT your help.