ASTE.Public.Rest.Helpers.ConfigHelper.GetApiDiscoveryUrl C# (CSharp) Method

GetApiDiscoveryUrl() public method

Returns API Discovery url from web.config
public GetApiDiscoveryUrl ( ) : string
return string
        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;
            }
        }