예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Issuer.Length != 0)
            {
                hash ^= Issuer.GetHashCode();
            }
            hash ^= audiences_.GetHashCode();
            if (jwksSourceSpecifierCase_ == JwksSourceSpecifierOneofCase.RemoteJwks)
            {
                hash ^= RemoteJwks.GetHashCode();
            }
            if (jwksSourceSpecifierCase_ == JwksSourceSpecifierOneofCase.LocalJwks)
            {
                hash ^= LocalJwks.GetHashCode();
            }
            if (Forward != false)
            {
                hash ^= Forward.GetHashCode();
            }
            hash ^= fromHeaders_.GetHashCode();
            hash ^= fromParams_.GetHashCode();
            if (ForwardPayloadHeader.Length != 0)
            {
                hash ^= ForwardPayloadHeader.GetHashCode();
            }
            hash ^= (int)jwksSourceSpecifierCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
 /// <summary>
 ///     Get TLV element hash code.
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return(Value.GetHashCode() + Type.GetHashCode() + Forward.GetHashCode() + NonCritical.GetHashCode());
     }
 }
예제 #3
0
        /// <summary>
        ///     Get TLV element hash code.
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked
            {
                int res = 1;
                foreach (byte value in _value)
                {
                    res = 31 * res + value;
                }

                return(res + Type.GetHashCode() + Forward.GetHashCode() + NonCritical.GetHashCode());
            }
        }
예제 #4
0
        /// <summary>
        ///     Get TLV element hash code.
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked
            {
                int res = 1;
                foreach (ITlvTag tag in _childTags)
                {
                    res = 31 * res + tag.GetHashCode();
                }

                return(res + Type.GetHashCode() + Forward.GetHashCode() + NonCritical.GetHashCode());
            }
        }
예제 #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (responseCase_ == ResponseOneofCase.Reply)
            {
                hash ^= Reply.GetHashCode();
            }
            if (responseCase_ == ResponseOneofCase.Forward)
            {
                hash ^= Forward.GetHashCode();
            }
            hash ^= sideEffects_.GetHashCode();
            hash ^= (int)responseCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }