public static bool TryFrom(string host, HttpResource resource, out HttpLink link) { link = HttpHost.TryFrom(host, out var parsedHost) ? new HttpLink(parsedHost, resource) : null; return(link != null); }
// // Factory // public static bool TryFrom(HttpHost host, string resource, out HttpLink link) { link = HttpResource.TryFrom(resource, out var parsedResource) ? new HttpLink(host, parsedResource) : null; return(link != null); }
public static HttpLink From(HttpHost host, HttpResource resource) => new HttpLink(host, resource);
public HttpLink Then(HttpResource resource) => new HttpLink(Host, Resource.Then(resource));
HttpLink(HttpHost host, HttpResource resource) { Host = host; Resource = resource; }