Chapter 2. Getting Started with Ninject
This chapter teaches the user how to add Ninject to a practical project and use the basic features of this framework. The chapter starts with an example demonstrating how to setup and use Ninject in a Hello World project. Then, we will talk about how Ninject resolves dependencies and how it manages object lifetime. Final sections of this chapter will cover code-based configuration using Ninject modules and XML-based configuration using an XML file. By the end of this chapter, the user will be able to setup and use basic features of Ninject.
The topics covered in this chapter are:
Hello Ninject!
It's all about Binding
Object Lifetime
Ninject modules
XML configuration
Convention over configuration