Esempio n. 1
0
        public static bool TryFrom(string value, out Href href)
        {
            if (HttpLink.TryFrom(value, out var link))
            {
                href = link;
            }
            else if (HttpResource.TryFrom(value, out var resource))
            {
                href = resource;
            }
            else
            {
                href = null;
            }

            return(href != null);
        }
Esempio n. 2
0
 public HttpLink ToLink() =>
 HttpLink.From(this);