예제 #1
0
 private void Consumer_OnConsumeError(object sender, Confluent.Kafka.Message e)
 {
     OnError(e.Error.ToString());
 }
예제 #2
0
 private void OnConsumerErrorHandle(object sender, Confluent.Kafka.Message message)
 {
     _logger.Error($"kafka consumer topic:{message.Topic}, partition:{message.Partition},offset:{message.Offset},value:{message.Value}, error code:{message.Error.Code},reason:{message.Error.Reason}");
     throw new KafkaException(message.Error);
 }