/// <summary> /// Copy constructor for /// <see cref="HttpHost">HttpHost</see> /// . /// </summary> /// <param name="httphost">the HTTP host to copy details from</param> public HttpHost(Org.Apache.Http.HttpHost httphost) : base() { Args.NotNull(httphost, "HTTP host"); this.hostname = httphost.hostname; this.lcHostname = httphost.lcHostname; this.schemeName = httphost.schemeName; this.port = httphost.port; this.address = httphost.address; }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj is Org.Apache.Http.HttpHost) { Org.Apache.Http.HttpHost that = (Org.Apache.Http.HttpHost)obj; return(this.lcHostname.Equals(that.lcHostname) && this.port == that.port && this. schemeName.Equals(that.schemeName)); } else { return(false); } }