Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RequestID.Length != 0)
            {
                hash ^= RequestID.GetHashCode();
            }
            if (ReplyChannel.Length != 0)
            {
                hash ^= ReplyChannel.GetHashCode();
            }
            if (Metadata.Length != 0)
            {
                hash ^= Metadata.GetHashCode();
            }
            if (Body.Length != 0)
            {
                hash ^= Body.GetHashCode();
            }
            if (CacheHit != false)
            {
                hash ^= CacheHit.GetHashCode();
            }
            if (Context.Length != 0)
            {
                hash ^= Context.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ID.Length != 0)
            {
                hash ^= ID.GetHashCode();
            }
            if (Channel.Length != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (Metadata.Length != 0)
            {
                hash ^= Metadata.GetHashCode();
            }
            if (Body.Length != 0)
            {
                hash ^= Body.GetHashCode();
            }
            if (ReplyChannel.Length != 0)
            {
                hash ^= ReplyChannel.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (CacheKey.Length != 0)
            {
                hash ^= CacheKey.GetHashCode();
            }
            if (CacheTTL != 0)
            {
                hash ^= CacheTTL.GetHashCode();
            }
            if (Context.Length != 0)
            {
                hash ^= Context.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }