Open
Description
Currently we are creating ServiceScopes that have a life time attached to the platform windowbut we never actually dispose of the scopes.
This would be very useful behavior to have for services that are created with a service scoped life time.
Implementation of this might surface some problematic scenarios for users if they are using Service Locator pattern with long lived types. For example, a lot of users are still using App.MainPage = new MainPage()
. In this scenario (and others) the xplat window/mainpage will survive the life of the platform window. This means if the user has stored the IServiceProvider
locally that IServiceProvider
will no longer be valid.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo