示例#1
0
        public string BuildCallbackUrl(string path, bool trailingSlash = true)
        {
            if (string.IsNullOrWhiteSpace(BaseUrl))
            {
                return(BuildUrl(path, trailingSlash));
            }

            return(BaseUrl.BuildFullUrl(path, trailingSlash));
        }
示例#2
0
        public string BuildUrl(string path, bool trailingSlash = true)
        {
            if (string.IsNullOrWhiteSpace(BaseUrl))
            {
                throw new ConfigurationException("Configure BaseUrl with 'urls:baseUrl'.");
            }

            return(BaseUrl.BuildFullUrl(path, trailingSlash));
        }
示例#3
0
        public string BuildUrl(string path, bool trailingSlash = true)
        {
            if (string.IsNullOrWhiteSpace(BaseUrl))
            {
                var error = new ConfigurationError("urls:baseurl", "Value is required.");

                throw new ConfigurationException(error);
            }

            return(BaseUrl.BuildFullUrl(path, trailingSlash));
        }