Exemple #1
0
        public void Commit <TSourceEvent>(KafkaEvent <TSourceEvent> @event) where TSourceEvent : IEvent
        {
            var offsetsToCommit = new TopicPartitionOffset(@event.TopicPartitionOffset.TopicPartition, @event.TopicPartitionOffset.Offset + 1);

            Consumer.Commit(new[] { offsetsToCommit });
        }
 public async Task CommitAsync <TSourceEvent>(KafkaEvent <TSourceEvent> @event) where TSourceEvent : IEvent
 {
     var offsetsToCommit = new TopicPartitionOffset(@event.TopicPartitionOffset.TopicPartition, @event.TopicPartitionOffset.Offset + 1);
     await Consumer.CommitAsync(new[] { offsetsToCommit });
 }