public string BuildCallbackUrl(string path, bool trailingSlash = true) { if (string.IsNullOrWhiteSpace(BaseUrl)) { return(BuildUrl(path, trailingSlash)); } return(BaseUrl.BuildFullUrl(path, trailingSlash)); }
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)); }
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)); }