Great article!

I especially liked the part regard service locator and that you should opt for explicit dependencies.

I'd like to ask if you know what I could do to find dependencies in my command handlers - as shown in this article: https://medium.com/swlh/dynamic-command-dispatching-in-c-d3abe21b3d1b

At the very bottom, I actually state that I'd use the IServiceCollection to find registered types, but I totally see why this is not a great thing to do.

Do you have any suggestions on how to solve this?

We can connect on Discord if you'd like.

MSc. | Tech writer with +1M views. Sharing my opinion and what I learn. .NET backend engineer, ex big4 SC. New YouTube Channel https://bit.ly/3vxqNHj