I am blogging this code snippet in order to ask some people at altnetseattle if this is a good implementation or not.
I want to know whether or not this is considered a good way of wiring up NHibernate using StructureMap. I am making use of the registry DSL feature, this code would get called somewhere in my bootstrapper.
Elsewhere in my code, my Repositories simply have a constructor dependency on ISession.
NHibernateConfiguration is my class that does all configuration of NHibernate using FluentNHibernate.