Re:IoC Containers Compared. Single and Multi Threaded Speed ...
by nbevans on Tuesday August 16, 2016 @10:15AM
(#12297576)
Article says "IOC !== DI".
Actually 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.
Actually 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.