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].
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.