Returning Auto-Unregistering Objects From An Instance-Counting Factory Posted by By sven.huebner.it January 23, 2021Posted inGeneral Development Automatically unregister a disposed instance at the factory by using a wrapper around the instance that executes a factory callback on being disposed.