Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created October 12, 2010 12:21
Show Gist options
  • Save andreasohlund/622092 to your computer and use it in GitHub Desktop.
Save andreasohlund/622092 to your computer and use it in GitHub Desktop.
var container = new Container(x =>
{
x.ForSingletonOf<ISessionFactory>().Use(ConfigureSessionFactory());
x.For<ISession>().Use(ctx => ctx.GetInstance<ISessionFactory>().OpenSession());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment