Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        //
        // 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);
        }
Esempio n. 3
0
 public static HttpLink From(HttpHost host, HttpResource resource) =>
 new HttpLink(host, resource);
Esempio n. 4
0
 public HttpLink Then(HttpResource resource) =>
 new HttpLink(Host, Resource.Then(resource));
Esempio n. 5
0
 HttpLink(HttpHost host, HttpResource resource)
 {
     Host     = host;
     Resource = resource;
 }