I have the following code in Simple Injector IoC container:
container.RegisterDecorator(typeof(ICommandHandler<>),
typeof(ValidationCommandHandlerDecorator<>));
I need to translate this to Ninject equivalent. I've read that the Decorator pattern in Ninject is done via the WhenInjectedInto method, but the whole biding requires like 3 parameters like here:
Bind<IRepository>().To<SimpleRepository>
.WhenInjectedInto<AdvancedRespository>();
This method in Simple Injector takes just 2, so could you tell me please what I'm missing here?