public string GetApiDiscoveryUrl() { var value = ConfigurationManager.AppSettings[Constants.API_DISCOVERY_URL_KEY]; if(value == null) { throw new ArgumentException("Api discovery URL not set in web.config."); } else { return value; } }