Hy, Assuming all your services are inherited from IService, you can write the following
Add the following statement
using Ninject.Extensions.Conventions;
Use conventions like
kernel.Bind( x => x
.FromThisAssembly()
.SelectAllClasses().InheritedFrom<IService>()
.BindAllInterfaces()
.Configure(b => b.InSingletonScope()));
You may need to tweak it a little to your needs.
source
share