title: Using Dependency Injection with Http Handlers
body: <p>I am using ASP.NET MVC 2 with Ninject, and Linq2SQL behind a repository pattern, based on <a href="http://blog.wekeroad.com/2010/05/24/mvc-starter-2" rel="nofollow">Rob Conery's TekPub Starter Site</a>.</p>
  
  <p>With controllers it all works fine, however I have an HTTP Handler (it serves and resizes images from a DB), and I have no idea how I use Ninject to replace my ISession interface with a concrete instance of my LinqToSQLSession.</p>
  
  <p>How should I best do this?</p>