Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((TraceIdHigh.GetHashCode() * 397) ^ TraceIdLow.GetHashCode());
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + TraceIdLow.GetHashCode();
                hashcode = (hashcode * 397) + TraceIdHigh.GetHashCode();
                hashcode = (hashcode * 397) + SpanId.GetHashCode();
                hashcode = (hashcode * 397) + ParentSpanId.GetHashCode();
                hashcode = (hashcode * 397) + OperationName.GetHashCode();
                if (__isset.references)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(References);
                }
                hashcode = (hashcode * 397) + Flags.GetHashCode();
                hashcode = (hashcode * 397) + StartTime.GetHashCode();
                hashcode = (hashcode * 397) + Duration.GetHashCode();
                if (__isset.tags)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Tags);
                }
                if (__isset.logs)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Logs);
                }
            }
            return(hashcode);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TraceIdHigh != 0UL)
            {
                hash ^= TraceIdHigh.GetHashCode();
            }
            if (TraceId != 0UL)
            {
                hash ^= TraceId.GetHashCode();
            }
            if (SpanId != 0UL)
            {
                hash ^= SpanId.GetHashCode();
            }
            if (parentSpanId_ != null)
            {
                hash ^= ParentSpanId.GetHashCode();
            }
            if (Sampled != false)
            {
                hash ^= Sampled.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TraceIdHigh.GetHashCode();
         hashCode = (hashCode * 397) ^ TraceId.GetHashCode();
         hashCode = (hashCode * 397) ^ ParentSpanId.GetHashCode();
         hashCode = (hashCode * 397) ^ SpanId.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + RefType.GetHashCode();
                hashcode = (hashcode * 397) + TraceIdLow.GetHashCode();
                hashcode = (hashcode * 397) + TraceIdHigh.GetHashCode();
                hashcode = (hashcode * 397) + SpanId.GetHashCode();
            }
            return(hashcode);
        }