using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Tango.Web { public class WebConfig { /// /// Gets the database address. /// public static String DB_ADDRESS => ConfigurationManager.AppSettings[nameof(DB_ADDRESS)].ToString(); /// /// Gets the name of the database user. /// public static String DB_USER_NAME => ConfigurationManager.AppSettings[nameof(DB_USER_NAME)].ToString(); /// /// Gets the database password. /// public static String DB_PASSWORD => ConfigurationManager.AppSettings[nameof(DB_PASSWORD)].ToString(); /// /// Gets the database catalog. /// public static String DB_CATALOG => ConfigurationManager.AppSettings[nameof(DB_CATALOG)].ToString(); /// /// Gets the storage account URL. /// public static String STORAGE_ACCOUNT => ConfigurationManager.AppSettings[nameof(STORAGE_ACCOUNT)].ToString(); /// /// Gets the tenant identifier. /// public static String TENANT_ID => ConfigurationManager.AppSettings[nameof(TENANT_ID)].ToString(); /// /// Gets the client identifier. /// public static String CLIENT_ID => ConfigurationManager.AppSettings[nameof(CLIENT_ID)].ToString(); /// /// Gets the application secret. /// public static String APP_SECRET => ConfigurationManager.AppSettings[nameof(APP_SECRET)].ToString(); /// /// Gets the deployment slot (DEV/TEST/STAGE/PROD). /// public static DeploymentSlot DEPLOYMENT_SLOT => (DeploymentSlot)Enum.Parse(typeof(DeploymentSlot), ConfigurationManager.AppSettings[nameof(DEPLOYMENT_SLOT)].ToString()); /// /// Gets the environment active directory user group (Tango DEV / Tango TEST / Tango STAGE / Tango PROD). /// public static String ENVIRONMENT_GROUP => ConfigurationManager.AppSettings[nameof(ENVIRONMENT_GROUP)].ToString(); } }