I want to store the HttpClient BaseAddress Uri on my ASP.NET MVC4 project web.config.
In which section is the correct place to add this configuration?
I want to store the HttpClient BaseAddress Uri on my ASP.NET MVC4 project web.config.
In which section is the correct place to add this configuration?
Add this in web.config
<configuration>
<appSettings>
<add key="BaseAddress" value="http://xxx/"/>
</appSettings>
</configuration>
Get value like this:
ConfigurationManager.AppSettings["BaseAddress"]