I have some (sort of) Singletons which exist in three context:
Per AppDomain
Per HttpApplication
Per Web Request
Right now, I'm creating a child container per HttpApplication and another child per Web Request. This is necessary because some components SHOULD actually share singleton instances across the three layers. For security and other reasons, there are certain registrations that SHOULD NOT actually share the singleton (one per container).
Does anyone have a suggestion as to how to implement this or how I can limit the visibility of registrations within a container hierarchy?
Thanks.