salomonbrys
10/17/2018, 5:58 PMAppSessionScope
and UserSessionScope
implementation. I suppose they are using MultiItemObjectRegistry
? There's a clean
method on it, to "clear" the registry, which makes all objects go out of scope.
However, this might not be necessary if the registry is only "held" by an object that goes out of scope. GC can take care of that.
Using a WeakContextScope
can also be a way to not manually clean the registry.streetsofboston
10/17/2018, 7:22 PMUserSessionScope
being tied to the AppSessionScope
, ie when the old AppSessionScope
releases its registry, the current UserSessionScope
should release its registry as well.
In short: How to I scope a scope 🙂
I could do some odd trickery, but is there an ‘official’ Kodein way to scope scopes (subscope)salomonbrys
10/17/2018, 7:54 PMstreetsofboston
10/17/2018, 8:04 PMsalomonbrys
10/24/2018, 4:48 PMstreetsofboston
10/24/2018, 4:50 PMsalomonbrys
10/24/2018, 4:51 PM