Service Locator is not an Anti-Pattern

added by DotNetKicks
1/11/2022 4:19:36 PM

343 Views

Well, it is, sometimes. It depends. I often get pushback on MediatR for using service location for resolving handlers, often getting pointed at Mark Seemann's post that Service Locator is an Anti-Pattern. And for all of the examples in the post, I agree that service location in those cases should


0 comments