Well - probably in the code that would be more clear. In the github fork I 
made a 
change<https://github.com/nchaly/rhino-esb/commit/5b4ed1e80ab55a9fc1745bef45fcf98082183f11>,
 
which controls life time as I outlined in the initial post.

On Friday, May 24, 2013 4:11:26 PM UTC+3, Corey wrote:
>
> All of the containers are community supported. I believe the behavior of 
> calling Dispose is the default behavior for both Windsor and StructureMap, 
> and maybe isn't for Autofac?
>
>
> On Fri, May 24, 2013 at 6:17 AM, Mikalai Chaly <[email protected]<javascript:>
> > wrote:
>
>> Is there a way to control consumers and their dependencies lifetime 
>> scope? 
>>
>> I have a set of dependencies which is usual for web development:
>>
>>  - Consumer depends on Service1 and Service2.
>>  - Service1 and Service2 depend on Repository.
>>
>> Expected life cycle:
>>  - Repository created
>>  - Service1 created
>>  - Service2 created
>>  - Consumer created
>>  - ..... some processing...
>>  - Consumer disposed
>>  - Service2 disposed
>>  - Service1 disposed
>>  - Repository disposed.
>>
>> The results where confusing a little bit. When using autofac 
>> bootstrapper,  even Consumer.Dispose is not invoked (it is, when using 
>> CastleBootStrapper).
>>
>> So my question is: is this behaviour by design? Are there some plans to 
>> add lifetime control? 
>>
>>
>>
>>
>>     
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Rhino Tools Dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to