Disposes every performed registration; the container can then be used again

def dispose(self):
        """
        Disposes every performed registration; the container can then be used again
        """
        for registration in self._registrations.values():
            registration.dispose()

        self._registrations = {}