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