On Monday, 30 April 2012 15:56:23 UTC+1, Bartelink, Ruben wrote:
> What Remo is saying is that there is no longer any magic special casing of
> how generic bindings are handled in the conventions extension vs how types
> that are not open generics are handled.
> In other words any binding syntax that you can use outside of the
> conventions extension will work against it.
> Have you looked at the wiki at
> https://github.com/ninject/ninject.extensions.conventions/wiki ?
> There are examples of how one does bindings in general (though probably
> not anything specific re conventions with open generic bindings - the point
> being that its just how you'd do it without the conventions)
> --R
> On Monday, April 30, 2012 2:49:37 PM UTC+1, G.McNicol wrote:
>> So, there's no conventional way to do it?
>> If not, I'll have to switch containers.
>> On Monday, 30 April 2012 14:30:07 UTC+1, G.McNicol wrote:
>>> Hi, what would be the 3.0 equivalent to this:
>>> Kernel.Scan(x =>
>>> {
>>> x.BindingGenerators.Add(new
>>> GenericBindingGenerator(typeof(ICommandHandler<>)));
>>> });
>>> I can find no examples of this.
>>> Thanks
>>> Gareth