Be wary of any IOC Container that supports a global static function like GetInstance<T>(...) As this is not IOC or DI. This is Service Location - a totally different pattern. IOC Containers that support that often have confused semantics all over the place.
1 comment
[ 0.28 ms ] story [ 12.4 ms ] threadActually that is wrong.
IOC = Composition Root + DI + Lifetime Management
Be wary of any IOC Container that supports a global static function like GetInstance<T>(...) As this is not IOC or DI. This is Service Location - a totally different pattern. IOC Containers that support that often have confused semantics all over the place.