Esempio n. 1
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);
        }
Esempio n. 2
0
 /// <summary>
 /// <inheritdoc cref="Object.GetHashCode"/>
 /// </summary>
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Query.GetHashCode();
         hashCode = (hashCode * 397) ^ OperationName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Variables?.GetHashCode() ?? 0;
         return(hashCode);
     }
 }
    public override int GetHashCode()
    {
        unchecked
        {
            var hashCode = Query != null?Query.GetHashCode() : 0;

            hashCode = (hashCode * 397) ^ (Variables != null ? Variables.GetHashCode() : 0);
            hashCode = (hashCode * 397) ^ (OperationName != null ? OperationName.GetHashCode() : 0);
            return(hashCode);
        }
    }
Esempio n. 4
0
        private int InternalHashCode()
        {
            var       hashCode = 419446955;
            const int hashSeed = -1521134295;

            hashCode = hashCode * hashSeed + OperationName.GetHashCode();
            hashCode = hashCode * hashSeed + OperationCallerName.GetHashCode();
            hashCode = hashCode * hashSeed + EqualityComparer <OperationFunctor> .Default.GetHashCode(FunctorSpecialization);

            hashCode = hashCode * hashSeed + EqualityComparer <OperationFunctor> .Default.GetHashCode(CallerFunctorSpecialization);

            return(hashCode);
        }
Esempio n. 5
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = PartitionKey?.GetHashCode() ?? 0;
                hashCode = (hashCode * 397) ^ (RowKey?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ Created.GetHashCode();
                hashCode = (hashCode * 397) ^ (EventType?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (OperationName?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (OrganizationId?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (SubscriptionId?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Data?.GetHashCode() ?? 0);

                return(hashCode);
            }
        }
Esempio n. 6
0
        /// <summary>
        /// 哈希数
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int hasCode = 0;

            if (Name != null)
            {
                hasCode += Name.GetHashCode();
            }
            if (OperationName != null)
            {
                hasCode += OperationName.GetHashCode();
            }
            if (ParamFilePath != null)
            {
                hasCode += ParamFilePath.GetHashCode();
            }
            return(hasCode);
        }
Esempio n. 7
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Query.Length != 0)
        {
            hash ^= Query.GetHashCode();
        }
        if (IsSchemaQuery != false)
        {
            hash ^= IsSchemaQuery.GetHashCode();
        }
        if (OperationName.Length != 0)
        {
            hash ^= OperationName.GetHashCode();
        }
        if (Variables.Length != 0)
        {
            hash ^= Variables.GetHashCode();
        }
        return(hash);
    }
Esempio n. 8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OperationId.Length != 0)
            {
                hash ^= OperationId.GetHashCode();
            }
            if (OperationName.Length != 0)
            {
                hash ^= OperationName.GetHashCode();
            }
            if (ConsumerId.Length != 0)
            {
                hash ^= ConsumerId.GetHashCode();
            }
            if (startTime_ != null)
            {
                hash ^= StartTime.GetHashCode();
            }
            if (endTime_ != null)
            {
                hash ^= EndTime.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            hash ^= metricValueSets_.GetHashCode();
            hash ^= logEntries_.GetHashCode();
            if (Importance != global::Google.Cloud.ServiceControl.V1.Operation.Types.Importance.Low)
            {
                hash ^= Importance.GetHashCode();
            }
            hash ^= extensions_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     return OperationName.GetHashCode();
 }