I'm using Jimmy Bogard's Mediatr and trying to use the pipleine example here
my problem is that although I can get all my closing generic types like so
kernel.Bind(
x =>
x.FromAssemblyContaining<ExpensiveRequest>()
.SelectAllClasses()
.InheritedFrom(typeof (IRequestHandler<,>)).BindAllInterfaces()
I can't decorate them all with the MediatorPipeline.
So if I were using StructureMap I could use something like this
cfg.For(typeof(IRequestHandler<,>)).DecorateAllWith(typeof(MediatorPipeline<,>));
I can't find how I would achieve it with Ninject so that when when my Mediator is called it uses the Mediator pipeline and then down to the original Handler