예제 #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);
        }
예제 #2
0
 public HttpLink ToLink() =>
 HttpLink.From(this);