I've trying to do the following with AutoFac (samples taken from here and here):
builder.Register(c => c.Resolve<IDocumentStore>().OpenSession())
.InstancePerLifetimeScope();
problem is, with the current release of AutoFac, i get a compile error with c.Resolve
Can someone please tell me how I can register an IDocumentSession, which is given to me by an IDocumentStore instance OpenSession() method.
