Created
March 8, 2022 20:33
-
-
Save awswithdotnet/64acdb35fd9b1cbea0e240d18e24e2dc to your computer and use it in GitHub Desktop.
kafka KafkaConsumer Consume Partial 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (_isConsuming) | |
{ | |
i++; | |
Console.WriteLine(i + ": "); | |
ConsumeResult<String, String> consumeResult = _consumer.Consume(_cts.Token); | |
Console.WriteLine(consumeResult.Message.Value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment