You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Again lifetimes is awesome so i integrated that everywhere and i have activatable view models. Basicaly its same aproach but to force deactivate view. And I came across that in some places I would like to use same view model so i want deactivate that only when no one use this.
I thought about same approach like with Intersection, but its not good due to the fact that will not have a way to terminate that. Smth like add method Union and DefineUnion to lifetime. Basicaly same stracture as with Intersection
Background and Motivation
Again lifetimes is awesome so i integrated that everywhere and i have activatable view models. Basicaly its same aproach but to force deactivate view. And I came across that in some places I would like to use same view model so i want deactivate that only when no one use this.
2nd example
I have gpsService which track location and i want to stop tracking only when no one use this
Proposed API
In order to provide a way to dispose that definition need to create spicific definition
Alternative Designs
I thought about same approach like with Intersection, but its not good due to the fact that will not have a way to terminate that. Smth like add method
Union
andDefineUnion
to lifetime. Basicaly same stracture as with Intersectionbut it not possible to terminate same way, for intersection its possible to use global lifetime in the same place
The text was updated successfully, but these errors were encountered: