i have the following interfaces injected in Castle Windsor. how do i do the same in Ninject?
container.Register(
AllTypes.FromAssemblyNamed("Apps.Web")
.BasedOn(typeof(ICommandHandler<>))
.WithService.FirstInterface());
i've tried:
this.Bind(x => x.FromAssembliesMatching("Apps.Web.dll")
.Select(y => y.Namespace.EndsWith("Handlers"))
.BindSingleInterface());
but getting Object reference not set to an instance of an object error.