Can we combine BindBase() with BindAllInterfaces() to some Factory ?
kernel.Bind(x =>
{
x.FromThisAssembly()
.SelectAllClasses()
.WithAttribute<SomeAttribute>()
.BindBase();
});
and
kernel.Bind(x =>
{
x.FromThisAssembly()
.SelectAllClasses()
.WithAttribute<SomeAttribute>()
.BindAllInterfaces();
});
.BindSelection((t, baseTypes) =>
baseTypes.Where(bt => bt.IsInterface || bt == t.BaseType))