Bloom.web.UrlLookup.LookupUrl C# (CSharp) Method

LookupUrl() public static method

public static LookupUrl ( UrlType urlType, bool sandbox = false, bool excludeProtocolPrefix = false ) : string
urlType UrlType
sandbox bool
excludeProtocolPrefix bool
return string
        public static string LookupUrl(UrlType urlType, bool sandbox = false, bool excludeProtocolPrefix = false)
        {
            if (Program.RunningUnitTests && (urlType == UrlType.Parse))
                return "https://bloom-parse-server-unittest.azurewebsites.net/parse"; //it's fine for the unit test url to be hard-coded, putting in the json buys us nothing.

            string fullUrl = LookupFullUrl(urlType, sandbox);
            if (excludeProtocolPrefix)
                return StripProtocol(fullUrl);
            return fullUrl;
        }