Broadly speaking, dependency injection and service locators can both be used to get references to an object’s dependencies. However, the two approaches are completely different.
{ author: @ant_f_dev } #DEVCommunity #dotNET
https://dev.to/ant_f_dev/using-dependency-injection-and-service-locators-to-get-references-in-c-2ek2