Exemplo n.º 1
0
        /// <summary>
        /// Serves as the default hash function.
        /// </summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            var hashCode = 1217544731;

            hashCode = (hashCode * -1521134295) + MaxSamples.GetHashCode();
            hashCode = (hashCode * -1521134295) + MaxInstances.GetHashCode();
            hashCode = (hashCode * -1521134295) + MaxSamplesPerInstance.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Serves as the default hash function.
        /// </summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            var hashCode = -1955302307;

            hashCode = (hashCode * -1521134295) + ServiceCleanupDelay.GetHashCode();
            hashCode = (hashCode * -1521134295) + HistoryKind.GetHashCode();
            hashCode = (hashCode * -1521134295) + HistoryDepth.GetHashCode();
            hashCode = (hashCode * -1521134295) + MaxSamples.GetHashCode();
            hashCode = (hashCode * -1521134295) + MaxInstances.GetHashCode();
            hashCode = (hashCode * -1521134295) + MaxSamplesPerInstance.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hashCode = 1745651570;

            hashCode = hashCode * -1521134295 + Locked.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ProvisioningAPIURL);

            hashCode = hashCode * -1521134295 + AutoProvisioning.GetHashCode();
            hashCode = hashCode * -1521134295 + AutoProvisioningLastActive.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Duration> .Default.GetHashCode(MinLifetime);

            hashCode = hashCode * -1521134295 + EqualityComparer <Duration> .Default.GetHashCode(MaxLifetime);

            hashCode = hashCode * -1521134295 + EqualityComparer <Duration> .Default.GetHashCode(CreationTimeout);

            hashCode = hashCode * -1521134295 + MinInstances.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxInstances.GetHashCode();
            hashCode = hashCode * -1521134295 + SystemMaxInstances.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ApplicationVersion);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(BinariesVersion);

            return(hashCode);
        }