Exactly, the actual session management is outside the container.It is only an accessor for this.
On Thu, Sep 10, 2009 at 9:56 PM, Mike Nichols <[email protected]>wrote: > I've been doing something similar but using NHibernate's builtin > ThreadStaticSessionContext.Bind(session); or > WebSessionContext.Bind(session); depending on environment. > > On Thu, Sep 10, 2009 at 11:48 AM, Ayende Rahien <[email protected]> wrote: > >> Yes, forgot that >> >> >> On Thu, Sep 10, 2009 at 9:44 PM, Craig Neuwirt <[email protected]>wrote: >> >>> This would need to be transient. right? >>> >>> >>> On Thu, Sep 10, 2009 at 1:35 PM, Ayende Rahien <[email protected]>wrote: >>> >>>> I am talking about something like: >>>> >>>> kernel.Register( Component.For<ISession>() >>>> .FactoryMethod( () => HttpContext.Items["current-session"]) ) >>>> ); >>>> >>>> >>>> >>>> On Thu, Sep 10, 2009 at 9:33 PM, Tyler Burd <[email protected]>wrote: >>>> >>>>> When you say "ambient session from the container", do you mean actually >>>>> injecting the ISession? Do you accomplish this via child containers when >>>>> needing a session-per-web-request or something similar? Or do you use a >>>>> per-web-request life-cycle when you register ISession with the container? >>>>> >>>>> >>>>> On Thu, Sep 10, 2009 at 12:20 PM, Ayende Rahien <[email protected]>wrote: >>>>> >>>>>> Yes, that is a good scenario for Binsor.But it is actually not >>>>>> something that I tend to do >>>>>> >>>>>> >>>>>> On Thu, Sep 10, 2009 at 9:06 PM, Nathan Stott <[email protected]>wrote: >>>>>> >>>>>>> I disagree. Binsor, on several occasions, has saved me a lot of >>>>>>> headache by allowing me to reconfigure my apps in production without >>>>>>> having >>>>>>> to recompile them. Windsor Fl does not allow for this. >>>>>>> >>>>>>> >>>>>>> On Thu, Sep 10, 2009 at 2:02 PM, Ayende Rahien <[email protected]>wrote: >>>>>>> >>>>>>>> To be absolutely honest, with the Windsor FI, I am not sure there is >>>>>>>> a lot of place for Binsor. >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Sep 10, 2009 at 8:59 PM, rg <[email protected]>wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> Please save the Binsor! >>>>>>>>> R >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
