I'm using number of collaborating containers and i have Main service in one of them and Dependency service in other container, registered as .eagerSingleton.
When i'm resolving instance of Main from container where it's registered, new instance of Dependency is created, thus breaking .eagerSingleton contract. If i move all definitions to single container, everything works as expected.
Hello and thanks for awesome project!
I'm using number of collaborating containers and i have
Main
service in one of them andDependency
service in other container, registered as.eagerSingleton
.When i'm resolving instance of
Main
from container where it's registered, new instance ofDependency
is created, thus breaking.eagerSingleton
contract. If i move all definitions to single container, everything works as expected.