Do not modify the subScopedObjects/subScopedObjects(subScopedObjects.remove/scopedEventHandlers.remove) inside unregisterEventHandler and only remove the DisposableScopedObjects in unregisterEventHandlers, although the unregisterEventHandlers not be called, it's ok that reuse the same DisposableScopedObjects.
Do not modify the
subScopedObjects
/subScopedObjects
(subScopedObjects.remove
/scopedEventHandlers.remove
) insideunregisterEventHandler
and only remove theDisposableScopedObjects
inunregisterEventHandlers
, although theunregisterEventHandlers
not be called, it's ok that reuse the sameDisposableScopedObjects
.