Open vatirim opened 10 years ago
Try this
kernel.Load<Nancy.Bootstrappers.Ninject.FactoryModule>();
From here https://groups.google.com/forum/#!topic/nancy-web-framework/-d4g3D-o_-w
danbarua, your phrase must be in documentation of this project! Thank you!
Hi,
it all worked when I used the Nancy internal IoC. With this lib I now get this exception:
I am using the latest stable nuget packages:
I have a workaround. Injecting this bind in the bootstrapper:
The problem might be that Ninject cannot inject into constructor parameters of type
Func<Interface>
as is the case inDefaultRouteCacheProvider
.Am I doing anything wrong or am I just the first to notice this?