title: Injecting ISession Into My Repositories Using Structuremap in a Asp.Net MVC Application
body: <p>My repositories all take ISession in the constructor:</p>
  
  <pre><code>protected Repository(ISession session)
  {
       this.session = session;
  }
  private readonly ISession session;
  </code></pre>
  
  <p>In an Asp.Net MVC application, using StructureMap, how would I go about setting up ISession in my the StructureMap Registry? Would I need to to add SessionFactory to the container also? Does FluentNHibernate change things?</p>