I made a webapi with .NET Core and I have a "Startup" class. This class has a "ConfigureServices" method that says:
// This method gets called by the runtime. Use this method to add services to the container.
But every time i add a new service, i need to "modify" this method, but it violates the open/closed principle.
If I use use and "IF" and "ELSE" criteria to do the same thing as I am modifying this method.
So what do you think about this?