Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            // Check for null values and compare run-time types.
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            HostInfo h = (HostInfo)obj;

            return(h.productId == this.productId &&
                   h.domain == this.domain && h.hostName == this.hostName &&
                   h.ipAddress == this.ipAddress && h.macAddress == this.macAddress);
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="host_info"></param>
 /// <param name="product_info"></param>
 public ServerInfo(HostElement host_info, ProductElement product_info)
 {
     host    = new HostInfo(host_info);
     product = new ProductInfo(product_info);
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="host_info"></param>
 /// <returns></returns>
 public bool IsSameHost(HostInfo host_info)
 {
     return(this.IsSameHost(host_info.hostName, host_info.productId));
 }
Example #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="host_info"></param>
 /// <param name="product_info"></param>
 public ServerInfo(HostInfo host_info = null, ProductInfo product_info = null)
 {
     host    = host_info ?? new HostInfo();
     product = product_info ?? new ProductInfo();
 }