コード例 #1
0
 public RequestResponseSerializationTest()
 {
     this.producerRequest = SerializationTestUtils.CreateTestProducerRequest();
     this.producerResponse = SerializationTestUtils.CreateTestProducerResponse();
     this.fetchRequest = SerializationTestUtils.CreateTestFetchRequest();
     this.offsetRequest = SerializationTestUtils.CreateTestOffsetRequest();
     this.offsetResponse = SerializationTestUtils.CreateTestOffsetResponse();
     this.topicMetadataRequest = SerializationTestUtils.CreateTestTopicMetadataRequest();
     this.topicMetadataResponse = SerializationTestUtils.CreateTestTopicMetadataResponse();
 }
コード例 #2
0
 protected bool Equals(OffsetResponse other)
 {
     return(this.CorrelationId == other.CorrelationId &&
            this.PartitionErrorAndOffsets.DictionaryEqual(other.PartitionErrorAndOffsets));
 }
コード例 #3
0
ファイル: OffsetResponse.cs プロジェクト: CMTelecom/kafka-net
 protected bool Equals(OffsetResponse other)
 {
     return this.CorrelationId == other.CorrelationId
            && this.PartitionErrorAndOffsets.DictionaryEqual(other.PartitionErrorAndOffsets);
 }