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

            hash ^= Claims.GetHashCode();
            if (Interval != 0)
            {
                hash ^= Interval.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Audiences != null ? Audiences.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Issuer != null ? Issuer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Lifetime;
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientId != null ? ClientId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)AccessTokenType;
         hashCode = (hashCode * 397) ^ (Claims != null ? Claims.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Version;
         return(hashCode);
     }
 }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= Claims.GetHashCode();
            if (ResultCode != 0)
            {
                hash ^= ResultCode.GetHashCode();
            }
            if (resultReply_ != null)
            {
                hash ^= ResultReply.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }