In short: calling DisposeRequestContainer the component is disposed
but never re-activated; not calling DisposeRequestContainer the
component is not disposed and never re-activated.
Could it be that ISession depends on ISessionFactory, that is
registered as singleton? On a broader perspective, does
CreateInnerContainer have any effect on the parent container?
I am using the latest 1.4 revision (checked out a few hours ago).
Thanks.
On Nov 11, 1:08 am, Nicholas Blumhardt <nicholas.blumha...@gmail.com>
It is more likely that something that depends on ISession is a
singleton, e.g. A repository - but that still sounds inconsistent with
the disposal behaviour you noted..
Are you registering services in RequestContainer? That would explain
it (all services should be registered in the app container.)
If that isn't it, can you post details of the web server you're using,
and if possible a sample of your container configuration?
Thanks,
Nick
> For more options, visit this group at http://groups.google.com/group/autofac?hl=en
> .
>
>
Everything is fine now.
On Dec 23, 10:07 pm, Nicholas Blumhardt <nicholas.blumha...@gmail.com>
wrote:
> Hi Dario,
>
> It is more likely that something that depends on ISession is a
> singleton, e.g. A repository - but that still sounds inconsistent with
> the disposal behaviour you noted..
>
> Are you registering services in RequestContainer? That would explain
> it (all services should be registered in the app container.)
>
> If that isn't it, can you post details of the web server you're using,
> and if possible a sample of your container configuration?
>
> Thanks,
>
> Nick
>