コード例 #1
0
 public bool Equals(KafkaProducerConfig other)
 {
     if (other is null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(KafkaClientConfigComparer.Compare(ConfluentConfig, other.ConfluentConfig));
 }
コード例 #2
0
 public bool Equals(KafkaConsumerConfig other)
 {
     if (other is null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(CommitOffsetEach == other.CommitOffsetEach &&
            KafkaClientConfigComparer.Compare(ConfluentConfig, other.ConfluentConfig));
 }