aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/WebConfig.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-27 15:14:10 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-27 15:14:10 +0200
commit9e42e1c87f3a206f0babc74760ac9a02d8d328f4 (patch)
treebe3be4cf23f524f430146af472883f63dd8bdfb7 /Software/Visual_Studio/Tango.Web/WebConfig.cs
parent894d05d59c0e1612903f1adbf908914f2df67ccc (diff)
downloadTango-9e42e1c87f3a206f0babc74760ac9a02d8d328f4.tar.gz
Tango-9e42e1c87f3a206f0babc74760ac9a02d8d328f4.zip
Implemented Deployment Slots!
Implemented Environment AD Groups. Implemented Machine Studio environment selection.
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/WebConfig.cs')
-rw-r--r--Software/Visual_Studio/Tango.Web/WebConfig.cs39
1 files changed, 38 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Web/WebConfig.cs b/Software/Visual_Studio/Tango.Web/WebConfig.cs
index c970fa3a1..d9566a7c5 100644
--- a/Software/Visual_Studio/Tango.Web/WebConfig.cs
+++ b/Software/Visual_Studio/Tango.Web/WebConfig.cs
@@ -8,18 +8,55 @@ namespace Tango.Web
{
public class WebConfig
{
+ /// <summary>
+ /// Gets the database address.
+ /// </summary>
public static String DB_ADDRESS => ConfigurationManager.AppSettings[nameof(DB_ADDRESS)].ToString();
+
+ /// <summary>
+ /// Gets the name of the database user.
+ /// </summary>
public static String DB_USER_NAME => ConfigurationManager.AppSettings[nameof(DB_USER_NAME)].ToString();
+
+ /// <summary>
+ /// Gets the database password.
+ /// </summary>
public static String DB_PASSWORD => ConfigurationManager.AppSettings[nameof(DB_PASSWORD)].ToString();
+
+ /// <summary>
+ /// Gets the database catalog.
+ /// </summary>
public static String DB_CATALOG => ConfigurationManager.AppSettings[nameof(DB_CATALOG)].ToString();
+ /// <summary>
+ /// Gets the storage account URL.
+ /// </summary>
public static String STORAGE_ACCOUNT => ConfigurationManager.AppSettings[nameof(STORAGE_ACCOUNT)].ToString();
+ /// <summary>
+ /// Gets the tenant identifier.
+ /// </summary>
public static String TENANT_ID => ConfigurationManager.AppSettings[nameof(TENANT_ID)].ToString();
+
+ /// <summary>
+ /// Gets the client identifier.
+ /// </summary>
public static String CLIENT_ID => ConfigurationManager.AppSettings[nameof(CLIENT_ID)].ToString();
+
+ /// <summary>
+ /// Gets the application secret.
+ /// </summary>
public static String APP_SECRET => ConfigurationManager.AppSettings[nameof(APP_SECRET)].ToString();
- public static String DEPLOYMENT_SLOT => ConfigurationManager.AppSettings[nameof(DEPLOYMENT_SLOT)].ToString();
+ /// <summary>
+ /// Gets the deployment slot (DEV/TEST/STAGE/PROD).
+ /// </summary>
+ public static DeploymentSlot DEPLOYMENT_SLOT => (DeploymentSlot)Enum.Parse(typeof(DeploymentSlot), ConfigurationManager.AppSettings[nameof(DEPLOYMENT_SLOT)].ToString());
+
+ /// <summary>
+ /// Gets the environment active directory user group (Tango DEV / Tango TEST / Tango STAGE / Tango PROD).
+ /// </summary>
+ public static String ENVIRONMENT_GROUP => ConfigurationManager.AppSettings[nameof(ENVIRONMENT_GROUP)].ToString();
}
}