示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Timestamp != 0L)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (GlobalTxId.Length != 0)
            {
                hash ^= GlobalTxId.GetHashCode();
            }
            if (LocalTxId.Length != 0)
            {
                hash ^= LocalTxId.GetHashCode();
            }
            if (ParentTxId.Length != 0)
            {
                hash ^= ParentTxId.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (CompensationMethod.Length != 0)
            {
                hash ^= CompensationMethod.GetHashCode();
            }
            if (Payloads.Length != 0)
            {
                hash ^= Payloads.GetHashCode();
            }
            if (ServiceName.Length != 0)
            {
                hash ^= ServiceName.GetHashCode();
            }
            if (InstanceId.Length != 0)
            {
                hash ^= InstanceId.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (Retries != 0)
            {
                hash ^= Retries.GetHashCode();
            }
            if (RetryMethod.Length != 0)
            {
                hash ^= RetryMethod.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(Location.GetHashCode() * 11 ^
                       RetrieveDate.GetHashCode() * 7 ^

                       (Retries.HasValue
                            ? Retries.GetHashCode() * 5
                            : 0) ^

                       (RetryInterval.HasValue
                            ? RetryInterval.GetHashCode()
                            : 0));
            }
        }
示例#3
0
        /// <inheritdocs />
        public override int GetHashCode()
        {
            var hashCode = -1775804580;

            hashCode = hashCode * -1521134295 + EqualityComparer <NameServer[]> .Default.GetHashCode(_endpoints);

            hashCode = hashCode * -1521134295 + EnableAuditTrail.GetHashCode();
            hashCode = hashCode * -1521134295 + UseCache.GetHashCode();
            hashCode = hashCode * -1521134295 + Recursion.GetHashCode();
            hashCode = hashCode * -1521134295 + Retries.GetHashCode();
            hashCode = hashCode * -1521134295 + ThrowDnsErrors.GetHashCode();
            hashCode = hashCode * -1521134295 + UseRandomNameServer.GetHashCode();
            hashCode = hashCode * -1521134295 + ContinueOnDnsError.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <TimeSpan> .Default.GetHashCode(Timeout);

            hashCode = hashCode * -1521134295 + UseTcpFallback.GetHashCode();
            hashCode = hashCode * -1521134295 + UseTcpOnly.GetHashCode();
            hashCode = hashCode * -1521134295 + AutoResolvedNameServers.GetHashCode();
            return(hashCode);
        }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ContainerImage.Length != 0)
            {
                hash ^= ContainerImage.GetHashCode();
            }
            if (Shell.Length != 0)
            {
                hash ^= Shell.GetHashCode();
            }
            if (WorkingDirectory.Length != 0)
            {
                hash ^= WorkingDirectory.GetHashCode();
            }
            hash ^= commands_.GetHashCode();
            if (When.Length != 0)
            {
                hash ^= When.GetHashCode();
            }
            hash ^= EnvVars.GetHashCode();
            if (AutoInjected != false)
            {
                hash ^= AutoInjected.GetHashCode();
            }
            if (Retries != 0L)
            {
                hash ^= Retries.GetHashCode();
            }
            hash ^= CustomProperties.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(Location.GetHashCode() * 11 ^

                       (StartTime.HasValue
                            ? StartTime.GetHashCode() * 7
                            : 0) ^

                       (StopTime.HasValue
                            ? StopTime.GetHashCode() * 5
                            : 0) ^

                       (Retries.HasValue
                            ? Retries.GetHashCode() * 3
                            : 0) ^

                       (RetryInterval.HasValue
                            ? RetryInterval.GetHashCode()
                            : 0));
            }
        }