I want to do something along the lines of this:
kernel.Bind<IBootTaskA>().To<BootTaskA>().InSingletonScope();
kernel.Bind<IBootTaskB>().To<BootTaskB>().InSingletonScope();
kernel.Bind<IBootTask>().To<IBootTaskA>();
kernel.Bind<IBootTask>().To<IBootTaskB>();
So i can do this:
public class Boot
{
public Boot(IBootTask[] bootTasks)
{
foreach(var task in bootTasks){task.Execute();}
}
}
but i cant seem to bind an interface to an interface, anyone know a way around this?