protected override void InterceptConsumerBuilder(ConsumerBuilder <string, IoTSensorStats> consumerBuilder) { base.InterceptConsumerBuilder(consumerBuilder); consumerBuilder.SetOffsetEnd(topicPartition => (LastConsumedOffset + 1) ?? Offset.Beginning); }