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

            if (application_ != null)
            {
                hash ^= Application.GetHashCode();
            }
            if (boundedContext_ != null)
            {
                hash ^= BoundedContext.GetHashCode();
            }
            if (tenant_ != null)
            {
                hash ^= Tenant.GetHashCode();
            }
            if (Environment.Length != 0)
            {
                hash ^= Environment.GetHashCode();
            }
            hash ^= claims_.GetHashCode();
            if (CommitInOrigin != 0UL)
            {
                hash ^= CommitInOrigin.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (application_ != null)
            {
                hash ^= Application.GetHashCode();
            }
            if (boundedContext_ != null)
            {
                hash ^= BoundedContext.GetHashCode();
            }
            if (tenant_ != null)
            {
                hash ^= Tenant.GetHashCode();
            }
            if (correlationId_ != null)
            {
                hash ^= CorrelationId.GetHashCode();
            }
            if (Environment.Length != 0)
            {
                hash ^= Environment.GetHashCode();
            }
            hash ^= claims_.GetHashCode();
            if (Culture.Length != 0)
            {
                hash ^= Culture.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode   = 3301;
                int multiplier = 79043;

                hashCode = (hashCode * multiplier) ^ Name.GetHashCode();
                hashCode = (hashCode * multiplier) ^ BoundedContext.GetHashCode();
                hashCode = (hashCode * multiplier) ^ Url.GetHashCode();
                hashCode = (hashCode * multiplier) ^ Version.GetHashCode();

                return(hashCode);
            }
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (application_ != null)
            {
                hash ^= Application.GetHashCode();
            }
            if (boundedContext_ != null)
            {
                hash ^= BoundedContext.GetHashCode();
            }
            if (clientId_ != null)
            {
                hash ^= ClientId.GetHashCode();
            }
            hash ^= offsets_.GetHashCode();
            hash ^= events_.GetHashCode();
            return(hash);
        }