Last post Jul 30, 2016 02:44 PM by imran_ku07
Jul 25, 2016 10:46 PM|sgude1|LINK
My MVC app needs to call a Web API in the same solution. Since they would have the same base URL I would assume I could get that from some environment variable. Right now I've got it in a config file, but that means I have to manually update it before publishing
to Azure (which I forget), and it will potentially create issues if I change the domain name.
Can I find the equivalent of "BaseAPIUrl": "https://localhost:44380/" somewhere else, like in IConfiguration or IHostingEnvironment that I can then inject into functions?
Jul 30, 2016 02:44 PM|imran_ku07|LINK
I suggest create a static variable and set it in Program.Main method where you are setting Content directory