示例#1
0
        public bool Equals(RateLimitChangedNotification other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                (OldLocalRateLimit.Equals(other.OldLocalRateLimit) &&
                 NewLocalRateLimit.Equals(other.NewLocalRateLimit) &&
                 OldGlobalRateLimit.Equals(other.OldGlobalRateLimit) &&
                 NewGlobalRateLimit.Equals(other.NewGlobalRateLimit));
        }
示例#2
0
        public bool Equals(RateLimitChangedNotification <TK> other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                (EqualityComparer <TK> .Default.Equals(Key, other.Key) &&
                 OldLocalRateLimit.Equals(other.OldLocalRateLimit) &&
                 NewLocalRateLimit.Equals(other.NewLocalRateLimit) &&
                 OldGlobalRateLimit.Equals(other.OldGlobalRateLimit) &&
                 NewGlobalRateLimit.Equals(other.NewGlobalRateLimit));
        }