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

LookupFullUrl() private static method

private static LookupFullUrl ( UrlType urlType, bool sandbox = false ) : string
urlType UrlType
sandbox bool
return string
        private static string LookupFullUrl(UrlType urlType, bool sandbox = false)
        {
            if (sandbox)
                urlType = GetSandboxUrlType(urlType);

            string url;
            if (s_liveUrlCache.TryGetValue(urlType, out url))
                return url;
            if (TryLookupUrl(urlType, out url))
            {
                s_liveUrlCache.AddOrUpdate(urlType, url, (type, s) => s);
                return url;
            }

            NonFatalProblem.Report(ModalIf.Alpha, PassiveIf.Alpha, "Bloom could not retrieve the URL (type: " + urlType + ") from the live lookup", "We will try to continue with the fallback URL");
            return LookupFallbackUrl(urlType);
        }