Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Options for wiring dependencies with NInject

With NInject (preferably 2.0), what options do we have wrt wiring up our object dependencies in a web application?

Can they be defined in an XML configuration file?

Or does it have to be done via code?

like image 244
Blankman Avatar asked Jan 27 '10 14:01

Blankman


Video Answer


1 Answers

There is an extension for xml based configuration: https://github.com/ninject/ninject.extensions.xml

You can do a lot more powerful binding in code though.

like image 76
Ian Davis Avatar answered Sep 20 '22 06:09

Ian Davis