Ejemplo n.º 1
0
        /// <inheritdoc cref="IEquatable{T}.Equals(T)" />
        public bool Equals(KafkaProducerConfig?other)
        {
            if (other is null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(ConfluentConfigEqualityComparer.Equals(ConfluentConfig, other.ConfluentConfig));
        }
Ejemplo n.º 2
0
        /// <inheritdoc cref="IEquatable{T}.Equals(T)" />
        public bool Equals(KafkaConsumerConfig?other)
        {
            if (other is null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(CommitOffsetEach == other.CommitOffsetEach &&
                   ConfluentConfigEqualityComparer.Equals(ConfluentConfig, other.ConfluentConfig));
        }