Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (LogicalName != null ? LogicalName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HostName != null ? HostName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ HostGuid.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #2
0
        public bool Equals(EndpointInstanceId other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(string.Equals(LogicalName, other.LogicalName) && string.Equals(HostName, other.HostName) && HostGuid.Equals(other.HostGuid));
        }