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