Ejemplo n.º 1
0
        public void FetchFrom(KafkaReader reader)
        {
            //Version = reader.ReadInt16();
            //Topics = reader.ReadStrings();
            //UserData = reader.ReadBytes();

            var protocolMetadata = reader.ReadBytes();

            if (protocolMetadata == null)
            {
                return;
            }
            using (var stream = new MemoryStream(protocolMetadata))
                using (var reader2 = new KafkaReader(stream)) {
                    Version  = reader2.ReadInt16();
                    Topics   = reader2.ReadStrings();
                    UserData = reader2.ReadBytes();
                }
        }
Ejemplo n.º 2
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     Groups = reader.ReadStrings();
 }
Ejemplo n.º 3
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     TopicNames = reader.ReadStrings();
 }