public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + TraceId.GetHashCode();
                hashcode = (hashcode * 397) + Sampled.GetHashCode();
                hashcode = (hashcode * 397) + Baggage.GetHashCode();
            }
            return(hashcode);
        }
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + ServerRole.GetHashCode();
                hashcode = (hashcode * 397) + Sampled.GetHashCode();
                hashcode = (hashcode * 397) + Baggage.GetHashCode();
                hashcode = (hashcode * 397) + Downstream.GetHashCode();
            }
            return(hashcode);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((TraceId != null))
                {
                    hashcode = (hashcode * 397) + TraceId.GetHashCode();
                }
                hashcode = (hashcode * 397) + Sampled.GetHashCode();
                if ((Baggage != null))
                {
                    hashcode = (hashcode * 397) + Baggage.GetHashCode();
                }
            }
            return(hashcode);
        }
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((ServerRole != null))
                {
                    hashcode = (hashcode * 397) + ServerRole.GetHashCode();
                }
                hashcode = (hashcode * 397) + Sampled.GetHashCode();
                if ((Baggage != null))
                {
                    hashcode = (hashcode * 397) + Baggage.GetHashCode();
                }
                if ((Downstream != null))
                {
                    hashcode = (hashcode * 397) + Downstream.GetHashCode();
                }
            }
            return(hashcode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (TraceId != 0UL)
            {
                hash ^= TraceId.GetHashCode();
            }
            if (SpanId != 0UL)
            {
                hash ^= SpanId.GetHashCode();
            }
            if (Sampled != false)
            {
                hash ^= Sampled.GetHashCode();
            }
            hash ^= BaggageItems.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }