I have two services and a mediator. If I want the mediator to call AND be called by both services, I think that I need to make them dependencies of each other. This causes a circular dependency error.
Person Depends on Mediator to call Mediator methods
Mediator Depends on Person to call Person methods
Is the only solution to use events or promises? Am I implementing this pattern correctly?