private void Consumer_OnConsumeError(object sender, Confluent.Kafka.Message e) { OnError(e.Error.ToString()); }
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); }