# registerContainedPod method

1. @protected

void registerContainedPod(

1. String containedPodName,
2. String containingPodName

)
inherited

Register a containment relationship between two pods.

This method tracks which pods contain other pods for proper destruction ordering (contained pods are destroyed first).

`containedPodName`: The name of the pod that is contained `containingPodName`: The name of the pod that does the containing

Example:

    // Register that UserService contains a UserRepository
    registry.registerContainedPod('userRepository', 'userService');

## Implementation

    @protected
    void registerContainedPod(String containedPodName, String containingPodName) {
      synchronized(_containedPods, () {
        final containedPods = _containedPods.putIfAbsent(containingPodName, () => <String>{});
        containedPods.add(containedPodName);
      });
    }