Thursday, October 20, 2011

Ninject lesson of the day.

Bind(typeof(IBlob<>)).ToProvider(typeof(IBlobProvider<>));

Does not work how you would expect.



Firstly you end up with a weird error message about a double binding.

I ended up using a crufty workaround with .ToMethod