Appsettings: [DEBUG/RELEASE] url setup
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
|
||||
public class Appsettings
|
||||
{
|
||||
public static string APIURL => ConfigurationManager.AppSettings.Get(nameof(APIURL));
|
||||
public static string APIURL
|
||||
#if DEBUG
|
||||
=> ConfigurationManager.AppSettings.Get("Localhost");
|
||||
#else
|
||||
=> ConfigurationManager.AppSettings.Get(nameof(APIURL));
|
||||
#endif
|
||||
|
||||
public static string ConnectionString => ConfigurationManager.AppSettings.Get(nameof(ConnectionString));
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
<!-- in seconds -->
|
||||
<add key="LoginTimeout" value="600" />
|
||||
<add key="ConnectionString" value="Data Source=SLASQL01.emea.sensus.net;Initial Catalog=Auftrag;Password=ServiceParingfile;Persist Security Info=True;User ID=ServiceParingfile;" />
|
||||
<add key="APIURL" value="http://localhost:54448/" />
|
||||
<add key="APIURL" value="http://sla12iis01.emea.sensus.net/LaaProductionWeb" />
|
||||
<add key="Localhost" value="http://localhost:54448/" />
|
||||
</appSettings>
|
||||
|
||||
<system.web>
|
||||
|
||||
Reference in New Issue
Block a user