I checked many answers and articles before writing this but I wasn't successful.
I want to register all the classes that are derived from 1 particular interface IInject
I have an Interface like this:
public interface IFoo : IInject
{
string GetOrder();
}
To auto register IFoo, I was able to that in Ninject like this:
kernel.Bind(c =>
c.FromAssembliesMatching("Core.*.dll")
.SelectAllIncludingAbstractClasses()
.InheritedFrom<IInject>()
.BindAllInterfaces());
But in Castle Windsor I could not. If you must know IInject interface is an empty interface only to trigger auto registration:
public interface IInject
{
//Nothing in this interface
}
How this MATCHING or CONTAINING patter can be used in Castle Windsor?
Thanks,