Thanks for reading.
I am using the Unity framework to implement dependency injection in my application (ASP.Net MVC). Sometimes there are some circular dependencies between services that I want to avoid.
So I'm looking for solutions :)
My case
imagine 3 services ServiceSally, ServiceJoe, ServiceJudy
ServiceSally Depends on ServiceJoe
ServiceJoe depends on ServiceJudy
ServiceJudy depends on ServiceSally (<That's pretty weird, isn't it?)
So, if you are a ServiceSally instance, she will need ServiceJoe for injection, and ServiceJoe will need ServiceJudy and ... BANG! ... ServiceJudy will need ServiceSally, starting an endless loop - and a very sad love triangle -.
How can I solve this case with cyclic love?: /
UPDATE:
: LazyJoe
, ?
?