I have following project structure as per below image.
What I want is when I start MainTestAPI project then it should start other Test1, Test2 and Test3 API.
So if MainTestAPI has following URL :
http://localhost:5055
So for test1 it should work like this
http://localhost:5055/api/Test1
http://localhost:5055/api/Test2
I know I can do that from Visual studio by setting multiple projects as startup, but I want to set it from some program.cs OR startup.cs file
So
I am thinking to use url rewriting, but I am not sure if that works or not.
So any help will be appreciated.
Thanks