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
[ 3.1 ms ] story [ 11.3 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.