Exemplo n.º 1
0
        private string CreateUriFormat(UriFormatAttribute uriFormatter)
        {
            string uriFormat = uriFormatter.UriFormat.RemovePreAndPostSlash();

            if (string.IsNullOrWhiteSpace(_urlPrefix))
            {
                return("/" + uriFormat);
            }

            return($"{_urlPrefix}/{uriFormat}");
        }
Exemplo n.º 2
0
        private string CreateUriFormat(UriFormatAttribute uriFormatter)
        {
            string uriFormat = uriFormatter.UriFormat.RemovePreAndPostSlash().EscapeRegexChars();;

            return(string.Format("/{0}", uriFormat));
        }