When using the latest version of rhino.commons, how can the ISession
interface be provided for use with rhino.security?
If I attempt to register ISession using a factory method as below:
container.Register(
Component.For<ISession>()
.UsingFactoryMethod(() => UnitOfWork.CurrentSession)
.LifeStyle.Transient);
then I get a CircularDependencyException:
Castle.MicroKernel.Exceptions.CircularDependencyException: A cycle was
detected when trying to resolve a dependency. The dependency graph
that resulted in a cycle is:
- Service dependency 'CurrentSession' type 'NHibernate.ISession' for
NHibernate.ISession CurrentSession in type
Rhino.Commons.NHibernateUnitOfWorkFactory
+ Service dependency 'CurrentSession' type 'NHibernate.ISession' for
NHibernate.ISession CurrentSession in
Rhino.Commons.NHibernateUnitOfWorkFactory
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en.