Options for wiring dependencies with NInject

前端 未结 4 1973
悲哀的现实
悲哀的现实 2020-12-11 06:31

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?

4条回答
  •  庸人自扰
    2020-12-11 06:57

    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.

提交回复
热议问题