public override int GetHashCode()
                {
                    int hash = 1;

                    if (EndpointId.Length != 0)
                    {
                        hash ^= EndpointId.GetHashCode();
                    }
                    if (EndpointName.Length != 0)
                    {
                        hash ^= EndpointName.GetHashCode();
                    }
                    if (EndpointType.Length != 0)
                    {
                        hash ^= EndpointType.GetHashCode();
                    }
                    if (Status.Length != 0)
                    {
                        hash ^= Status.GetHashCode();
                    }
                    hash ^= messageTypes_.GetHashCode();
                    if (ExternalId.Length != 0)
                    {
                        hash ^= ExternalId.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
            public override int GetHashCode()
            {
                var hashCode = 17;

                hashCode = hashCode * 23 + (EndpointId?.GetHashCode() ?? 0);
                hashCode = hashCode * 23 + (LogName?.GetHashCode() ?? 0);
                return(hashCode);
            }
            public override int GetHashCode()
            {
                var hashCode = 17;

                hashCode = hashCode * 23 + (EndpointId?.GetHashCode() ?? 0);
                hashCode = hashCode * 23 + (LogName?.GetHashCode() ?? 0);
                foreach (var cause in Causes)
                {
                    hashCode = (hashCode * 23) ^ cause.GetHashCode();
                }
                return(hashCode);
            }
Beispiel #4
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = EndpointId.GetHashCode();
                foreach (var(pid, seqNr) in LogSequenceNumbers)
                {
                    hash = (hash * 397) ^ pid.GetHashCode() ^ seqNr.GetHashCode();
                }

                return(hash);
            }
        }