DEV Community

Discussion on: Wiring up Ninject with ASP.NET Core 2.0

Collapse
 
nigelgos profile image
Nigel Gossage

Nice little write up. I've hit an issue where I want my service to take in IOptions as a constructor but the standard way of adding an IOptions using DI are not working with this tutorial. Any tips?

Collapse
 
cwetanow profile image
Ivan

Could you show some code ?

Collapse
 
nigelgos profile image
Nigel Gossage

The comments system is throwing loads of errors, it's making it hard to post :-/

Thread Thread
 
lr12003 profile image
David Lopez • Edited

I had the same issue, I added it as a parameter in the Configure method in the Startup file