Ninject – Dependency Injection


I wanted to learn about Inversion of Control and Dependency Injection.  I found a few good videos on YouTube and a nice tutorial on a blog.  The Blog Post was in two parts:

Part 1:  http://stefanoricciardi.com/2011/01/21/ninject-mini-tutorial-part-1/
Part 2: http://stefanoricciardi.com/2011/02/04/ninject-mini-tutorial-part-2/

Here are the links to the YouTube videos that I found that were helpful:

Tekpub Concepts: Dependency Injection and Inversion of Control
Setup Ninject for ASP.NET MVC – .NET In 60 Seconds  – This is a good example of how you would use it when doing MVC programming.

I was so excited after this, that I found some old code and used Ninject on it.  I had to re-factor the  code and extract some  interfaces, then I set up a simple bind statement and everything just worked!  VERY COOL!

Have fun and I hope these links will help you learn Ninject dependency injection.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.