|
|
|
|
|
by chvid
3676 days ago
|
|
Yes. But then you have to define an explicit constructor. Also X maybe auto wired into ServiceA or B making it impossible for the IoC container to create the intended object graph without splitting construction and injection into two passes. |
|
2. Do you not consider cyclic dependence a code smell? At least I have always avoided cyclic dependencies.