Automatically register all implementations of a generic interface in service container
I have a generic interface which has many implementations. I expect to have more implementations of this generic interface in the future. However, I don’t want to manually register these implementations in the service container every time I add a new one. It’d also cause runtime exception if I forget to register one of these … [Read more…]