Make it PerWebRequest, not transient. 2010/9/22 Vadimmer <[email protected]>
> Hi, > I'm using UsingFactoryMethod +Lifestyle.Transient to resolve NH > session from the container (before this issue > > http://stackoverflow.com/questions/3698164/castle-windsor-isubdependencyresolver-weird-issues > i used subdependencyresolver). > > The problem is that my session disposal is managed by begin/end > request. Windsor release policy interferes and disposes the session > before the end of request. > > Can I somehow tell the container to use NoTracking policy for one > component (ISession)? > > Thanks, > Vadim > > > //Full story just in case > My outer controller depends on ISession. In view I have RenderAction > calling other controller. After the first controller is done, session > gets disposed by mistake. Second controller receives a session that is > closed. BOOM. > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]<castle-project-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en.
