コード例 #1
0
 public void PublishRecord(string topic, byte[] key, byte[] value, DateTime timestamp)
 => task.AddRecord(new ConsumeResult <byte[], byte[]>
 {
     Topic = topic,
     TopicPartitionOffset = new TopicPartitionOffset(new TopicPartition(topic, task.Id.Partition), offset++),
     Message = new Message <byte[], byte[]> {
         Key = key, Value = value, Timestamp = new Timestamp(timestamp)
     }
 });